Home
Reply
Regular Contributor
sawarsi
Posts: 53

Problem with face

i am creating many faces and i do an entity check on each face after creation and most pass without error however, on a couple of faces i get the following error:

 

U or V range of the face cannot be determined or bad

 

i looked at the underlying bs3_surface but the knot vectors and control points appear just fine. can someone explain how this message may be occurring when the underlying spline is ok? this spline surface happens to be very simple as it is of degree one in each direction.

 

thanks

 

Regular Contributor
sawarsi
Posts: 53

Re: Problem with face

perhaps, i am not creating the FACE correctly? here is the code i am using; i looked for a direct API but could not find one so i use the FACE constructor directly. if there is a better way please let me know.

 

    spl = ACIS_NEW spline( (bs3_surface) my_spline );
    SPL = ACIS_NEW SPLINE( *spl );

    acis_face = ACIS_NEW FACE(acis_loops[0], NULL, SPL, FORWARD);
    sg_add_pcurves_to_entity(acis_face);


the sg_add_pcurves_to_entity seems to be the culprint although, it works in almost 100% of the cases.

 

Regular Contributor
sawarsi
Posts: 53

Re: Problem with face

found the problem.