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

Twisting together Curve

angel's picture
Forums: 

Hi,
I use "Geom2d_OffsetCurve" to create an offset curve, but the new curve twists together, so I use "Geom2dAPI_InterCurveCurve IntCuv(G2dOC,0.02)" to find the twist point. my code as following,

Handle(Geom2d_Curve) G2dOC = new Geom2d_OffsetCurve(G2dOC,Dis);
Geom2dAPI_InterCurveCurve IntCuv(G2dOC,Tol);
if (IntCuv.NbPoints() > 0)
gp_Pnt2d tmpP=IntCuv.Point(1);

I can get tmpP when the Dis is 20 and Tol is 0.02, but if Dis is 30, I can't get tmpP even I change the Tol to be 0.005 or 1.

Who can tell me this is a bug of Geom2dAPI_InterCurveCurve or I make a mistake.

Or, who have the experience about dealing "Twisting together Curve" can share to me?

Sincerely,
Angel

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.