Biro Sandor Tue, 06/15/2010 - 11:30 Forums: Other usage issuesHello everybody. Somebody know that the OCC has an algorithm to check a given point is inside or outside of a 2d face? Or other method to perform this kind of check ? Best regards, Sandor. Attachments: case.PNG JuryS Tue, 06/15/2010 - 23:47 Hi, maybe something like this: IntAna_IntConicQuad theIntersection( aLine, aPlane, Precision::Angular() ); if (theIntersection.IsDone()) { if (!theIntersection.IsParallel()) { if (theIntersection.NbPoints() > 0) { gp_Pnt theSolution(theIntersection.Point(1)); X = theSolution.X(); Y = theSolution.Y(); Z = theSolution.Z(); return Standard_True; } } } Log in to post comments Biro Sandor Tue, 06/22/2010 - 08:38 Thanks for advice, I will try. Sandor. Log in to post comments
Tue, 06/15/2010 - 23:47
Hi, maybe something like this:
IntAna_IntConicQuad theIntersection( aLine, aPlane, Precision::Angular() );
if (theIntersection.IsDone())
{
if (!theIntersection.IsParallel())
{
if (theIntersection.NbPoints() > 0)
{
gp_Pnt theSolution(theIntersection.Point(1));
X = theSolution.X();
Y = theSolution.Y();
Z = theSolution.Z();
return Standard_True;
}
}
}
Tue, 06/22/2010 - 08:38
Thanks for advice, I will try.
Sandor.