OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKMesh
IntPoly


IntPoly_PlaneSection Class Reference

determines the section of a triangulated shape by a plane.
The section is a set of edges.

#include <IntPoly_PlaneSection.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT IntPoly_PlaneSection ()
Standard_EXPORT IntPoly_PlaneSection (const TopoDS_Shape &S, const gp_Pln &P)
Standard_EXPORT void Section ()
Standard_EXPORT 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

Standard_EXPORT 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_EXPORT 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

Standard_EXPORT 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'

Standard_EXPORT void ForwConstruction (const gp_Pnt2d &Point)
 builds a section from Point in this way
___ ___ ___ ___
Point--/__/--/__/--/__/--/__/--->

Standard_EXPORT void PrevConstruction (const gp_Pnt2d &Point)
 builds a section from Point in this way
___ ___ ___ ___
<---/__/--/__/--/__/--/__/--Point

Standard_EXPORT Standard_Integer NbEdges ()
Standard_EXPORT TopoDS_Edge Edge (const Standard_Integer Index)
 builds an edge from a sequence of Pnt2d
this is a part of the section


Private Attributes

TopoDS_Shape myShape
gp_Trsf myTransform
gp_Trsf myBackTransform
IntPoly_SequenceOfSequenceOfPnt2d mySection
IntPoly_IndexedMapOfPnt2d myMapBegPoints
IntPoly_IndexedMapOfPnt2d myMapEndPoints
Standard_Integer myCpt
Standard_Integer myIndex
Standard_Integer myNbEdges


Constructor & Destructor Documentation

Standard_EXPORT IntPoly_PlaneSection::IntPoly_PlaneSection  ) 
 

Standard_EXPORT IntPoly_PlaneSection::IntPoly_PlaneSection const TopoDS_Shape &  S,
const gp_Pln &  P
 


Member Function Documentation

Standard_EXPORT Standard_Integer IntPoly_PlaneSection::Concat const gp_Pnt2d &  BegPnt,
const gp_Pnt2d &  EndPnt,
gp_Pnt2d &  OutPnt
 

Standard_EXPORT void IntPoly_PlaneSection::ConcatSection TColgp_SequenceOfPnt2d &  Section,
const Standard_Integer  NbSection,
const Standard_Integer  Index
 

Standard_EXPORT TopoDS_Edge IntPoly_PlaneSection::Edge const Standard_Integer  Index  ) 
 

Standard_EXPORT void IntPoly_PlaneSection::ForwConstruction const gp_Pnt2d &  Point  ) 
 

Standard_EXPORT void IntPoly_PlaneSection::Insert const gp_Pnt2d &  OldPnt,
const gp_Pnt2d &  ComPnt,
const gp_Pnt2d &  NewPnt
 

Standard_EXPORT Standard_Boolean IntPoly_PlaneSection::Intersect const gp_Pnt &  Point1,
const gp_Pnt &  Point2,
const gp_Pnt &  Point3,
gp_Pnt2d &  OutPoint1,
gp_Pnt2d &  OutPoint2
 

Standard_EXPORT Standard_Integer IntPoly_PlaneSection::NbEdges  ) 
 

void IntPoly_PlaneSection::operator delete void *  anAddress  )  [inline]
 

void* IntPoly_PlaneSection::operator new size_t  size  )  [inline]
 

void* IntPoly_PlaneSection::operator new size_t  ,
void *  anAddress
[inline]
 

Standard_EXPORT void IntPoly_PlaneSection::PrevConstruction const gp_Pnt2d &  Point  ) 
 

Standard_EXPORT void IntPoly_PlaneSection::Section  ) 
 


Field Documentation

gp_Trsf IntPoly_PlaneSection::myBackTransform [private]
 

Standard_Integer IntPoly_PlaneSection::myCpt [private]
 

Standard_Integer IntPoly_PlaneSection::myIndex [private]
 

IntPoly_IndexedMapOfPnt2d IntPoly_PlaneSection::myMapBegPoints [private]
 

IntPoly_IndexedMapOfPnt2d IntPoly_PlaneSection::myMapEndPoints [private]
 

Standard_Integer IntPoly_PlaneSection::myNbEdges [private]
 

IntPoly_SequenceOfSequenceOfPnt2d IntPoly_PlaneSection::mySection [private]
 

TopoDS_Shape IntPoly_PlaneSection::myShape [private]
 

gp_Trsf IntPoly_PlaneSection::myTransform [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:42:17 2008 for OpenCASCADE by  doxygen 1.4.1