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
Commenter-1
Archived discussion
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)
}
Discussion
Posts are displayed in their archived order.
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
Commenter-1
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
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
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
Best regards,
Commenter-3