GeomAPI_IntSS Problem

Hi EveryBody,
I use the following code to find the intersection
curve between a surface (MySurface) and a Plane
(MyPlane).
Most of the generated curves (aCurve1) exactly lie
down on MySurface, but many of them are wrong
that a part of these wrong curves are straight lines and
dont lie down on MySurface.
Thanks for any help that satisfy this mistake.

gp_Dir d1(0,0,1);
while(j>=aZmin )
{
j=j-10;
gp_Pnt p1(0,0,j);
Handle(Geom_Surface) MyPlane=GC_MakePlane(p1,d1).Value();
GeomAPI_IntSS aInterSS(MySurface,MyPlane,1.0e-7 );
//there is only one curve as a result
Handle(Geom_Curve) aCurve1 = aInterSS.Line(1);
//…. show the curve(aCurve1)
}

MCV's picture

I am not so sure, that there are just one curve each on every intersection. You shall normaly iterate over a set of intersection curves.
If you do not know how, let me know and I will send you some code example.

Best Regards

MCV

akbari1358_31365's picture

Dear Sir,
Thank you for your answer and Sorry for delay..
Actually I use the following code in my program and only one curve is made for all sections.
Best Regards.

gp_Dir d1(1,0,0);
Standard_Real j=aXmin;
while(j

akbari1358_31365's picture

Dear Sir,
Thank you for your answer and Sorry for delay..
Actually I use the following code in my program and only one curve is made for all sections.
Best Regards.

gp_Dir d1(1,0,0);
Standard_Real j=aXmin;
while(j

wdhefengli_146468's picture

Hi EveryBody,
I use the following code to find the intersection
curve between a surface (MySurface) and a surface
(OtherSurface).
Most of the generated curves (aCurve1) exactly lie
down on MySurface, but many of them are wrong
that a part of these wrong curves are straight lines and
dont lie down on MySurface.Why only one curves.

Thanks for any help that satisfy this mistake.

Forum supervisor's picture

Dear fengli​,

You can

  • share example of your intersected surfaces and inform used OCCT version
  • try DRAW-command xdistcs to check quality of the intersection result and inform the maximal found distance from the intersection curve to every surface.
  • communicate via our Contact Form for providing additional info about the needs of your projects and our efficient support.

Best regards,

​Forum supervisor