For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

GeomAPI_IntSS Problem

A.Akbari's picture
Forums: 

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(1,0,0);
Standard_Real j=aXmin;
while(j {
j=j+5;
gp_Pnt p1(j,0,0);
Handle(Geom_Surface) MyPlane=GC_MakePlane(p1,d1).Value();
GeomAPI_IntSS aInterSS(MySurface,MyPlane,1.0e-7 );

if (aInterSS.IsDone()==Standard_True)
{
Standard_Integer aNumberLines = aInterSS.NbLines();
for(Standard_Integer i = 1; i {
//there is only one curve as a result
Handle(Geom_Curve) aCurve1 = aInterSS.Line(i);
//…. show the curve(aCurve1)
}//for
}//if
}//while

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.