# 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();
//there is only one curve as a result
//…. show the curve(aCurve1)
}

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

Dear Sir,
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

Dear Sir,
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

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.

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