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

How to get the points of 3D curve?

guduyu's picture
Forums: 

GeomAPI_IntSS Intersector(surface,asurface,0.001);
Standard_Integer nb=Intersector.NbLines();
for(Standard_Integer linenum=1;linenum {
Handle(Geom_Curve) acurve=Intersector.Line(linenum);
if(acurve)
{
GeomAdaptor_Curve GAC (acurve);
GCPnts_QuasiUniformDeflection UA(GAC,0.001);
gp_Pnt P;

if (UA.IsDone())
{
Standard_Integer N = UA.NbPoints();
Graphic3d_Array1OfVertex VertexArray(1, N);
for (int i = 1; i {
acurve->D0(UA.Parameter(i),P);
VertexArray(i).SetCoord(P.X(),P.Y(),P.Z());

}
}

}
I want to konw where are errors?

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.