SUEntitiesFill and/or SUGeometryInputAddFace size limit?

Hi again,

So I tried several things:

  • I tried to check the SULoopInputAddVertexIndex by adding some code:

              if(SULoopInputAddVertexIndex(skpFaceLoop, skpVtxIndex) != SU_ERROR_NONE)
                  printf("loop_input is not valid or vertex_index already exists in the loop\n");
    

If I do that and set a breakpoint on the “printf” line, it goes along correctly (by the way, it seems that there is an error in the documentation: the two error types of SU_CALL are the same).

  • I tried to check the SUGeometryInputAddFace by adding some code:

          if(SUGeometryInputAddFace(skpGeomInput, &skpFaceLoop, &skpFaceIndex) == SU_ERROR_NULL_POINTER_INPUT);
              printf("outer_loop is NULL\n");
    

If I do that and set a breakpoint on the “printf” line, it stops all the time but goes on creating faces. Then I used the “SU_CALL” macro instead of my test and no exception is thrown, it goes on pretty well.

  • then I tried to check SUEntitiesFill by adding some code:

      if(SUEntitiesFill(curEntitiesRef, skpGeomInput, false) == SU_ERROR_INVALID_INPUT)
      {
          if(SUIsInvalid(curEntitiesRef))
              printf("SUEntitiesFill: entities are invalid objects\n");
          if(SUIsInvalid(skpGeomInput))
              printf("SUEntitiesFill: geom input is an invalid object\n");
      }
    

Since the documentation says that if there is an error code the entities or geom_input are invalid objects, I checked them. So when I do that, I see that the error code is return but none of my reference is invalid… And if I try so replace all that by a SU_CALL, an exception is thrown but it does not tell me much…

Bugra, I checked with my boss and it’s OK to send you my programm in debug but the problem is we do not use MSDEV to compile it but our own makefile system. So I’m afraid that building an equivalent solution would be long and hazardous. Would the programm in debug, code and sample database would be OK ?

Once again, thank you so much for your help and have a good day.