Open CASCADE Technology 6.6.0
|
determines the section of a triangulated shape by a plane.
The section is a set of edges.
#include <IntPoly_PlaneSection.hxx>
Public Member Functions | |
IntPoly_PlaneSection () | |
IntPoly_PlaneSection (const TopoDS_Shape &S, const gp_Pln &P) | |
void | Section () |
Standard_Boolean | Intersect (const gp_Pnt &Point1, const gp_Pnt &Point2, const gp_Pnt &Point3, gp_Pnt2d &OutPoint1, gp_Pnt2d &OutPoint2) |
determines the 2 2D-points resulting of the intersection of the triangle (Point1,Point2,Point3) by the plane | |
void | Insert (const gp_Pnt2d &OldPnt, const gp_Pnt2d &ComPnt, const gp_Pnt2d &NewPnt) |
sees whether OldPnt and NewPnt begins or ends a section created before and adds the 2 others points. If not, creates a section | |
Standard_Integer | Concat (const gp_Pnt2d &BegPnt, const gp_Pnt2d &EndPnt, gp_Pnt2d &OutPnt) |
sees whether BegPnt or EndPnt begins or ends a section created before, and returns the other point to continue the construction Returns 2 if the construction is 'Forward' Returns 1 if the construction is 'Previous' Returns 0 if not and creates a section | |
void | ConcatSection (TColgp_SequenceOfPnt2d &Section, const Standard_Integer NbSection, const Standard_Integer Index) |
sees whether Section begins or ends another one in mySection, from the rank 'Index' to the last one 'NbSection' | |
void | ForwConstruction (const gp_Pnt2d &Point) |
builds a section from Point in this way ___ ___ ___ ___ Point--/__/--/__/--/__/--/__/---> | |
void | PrevConstruction (const gp_Pnt2d &Point) |
builds a section from Point in this way ___ ___ ___ ___ <---/__/--/__/--/__/--/__/--Point | |
Standard_Integer | NbEdges () |
TopoDS_Edge | Edge (const Standard_Integer Index) |
builds an edge from a sequence of Pnt2d this is a part of the section |
IntPoly_PlaneSection::IntPoly_PlaneSection | ( | ) |
IntPoly_PlaneSection::IntPoly_PlaneSection | ( | const TopoDS_Shape & | S, |
const gp_Pln & | P | ||
) |
Standard_Integer IntPoly_PlaneSection::Concat | ( | const gp_Pnt2d & | BegPnt, |
const gp_Pnt2d & | EndPnt, | ||
gp_Pnt2d & | OutPnt | ||
) |
void IntPoly_PlaneSection::ConcatSection | ( | TColgp_SequenceOfPnt2d & | Section, |
const Standard_Integer | NbSection, | ||
const Standard_Integer | Index | ||
) |
TopoDS_Edge IntPoly_PlaneSection::Edge | ( | const Standard_Integer | Index | ) |
void IntPoly_PlaneSection::ForwConstruction | ( | const gp_Pnt2d & | Point | ) |
void IntPoly_PlaneSection::Insert | ( | const gp_Pnt2d & | OldPnt, |
const gp_Pnt2d & | ComPnt, | ||
const gp_Pnt2d & | NewPnt | ||
) |
Standard_Boolean IntPoly_PlaneSection::Intersect | ( | const gp_Pnt & | Point1, |
const gp_Pnt & | Point2, | ||
const gp_Pnt & | Point3, | ||
gp_Pnt2d & | OutPoint1, | ||
gp_Pnt2d & | OutPoint2 | ||
) |
Standard_Integer IntPoly_PlaneSection::NbEdges | ( | ) |
void IntPoly_PlaneSection::PrevConstruction | ( | const gp_Pnt2d & | Point | ) |
void IntPoly_PlaneSection::Section | ( | ) |