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

ModelingAlgorithms
TKTopAlgo
BRepLib


BRepLib_MakePolygon Class Reference

Class to build polygonal wires.

A polygonal wire may be build from

- 2,4,3 points.

- 2,3,4 vertices.

- any number of points.

- any number of vertices.


When a point or vertex is added to the polygon if
it is identic to the previous point no edge is
built. The method added can be used to test it.
.

#include <BRepLib_MakePolygon.hxx>

Inheritance diagram for BRepLib_MakePolygon:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT BRepLib_MakePolygon ()
 Creates an empty MakePolygon.
.
Standard_EXPORT BRepLib_MakePolygon (const gp_Pnt &P1, const gp_Pnt &P2)
Standard_EXPORT BRepLib_MakePolygon (const gp_Pnt &P1, const gp_Pnt &P2, const gp_Pnt &P3, const Standard_Boolean Close=Standard_False)
Standard_EXPORT BRepLib_MakePolygon (const gp_Pnt &P1, const gp_Pnt &P2, const gp_Pnt &P3, const gp_Pnt &P4, const Standard_Boolean Close=Standard_False)
Standard_EXPORT BRepLib_MakePolygon (const TopoDS_Vertex &V1, const TopoDS_Vertex &V2)
Standard_EXPORT BRepLib_MakePolygon (const TopoDS_Vertex &V1, const TopoDS_Vertex &V2, const TopoDS_Vertex &V3, const Standard_Boolean Close=Standard_False)
Standard_EXPORT BRepLib_MakePolygon (const TopoDS_Vertex &V1, const TopoDS_Vertex &V2, const TopoDS_Vertex &V3, const TopoDS_Vertex &V4, const Standard_Boolean Close=Standard_False)
Standard_EXPORT void Add (const gp_Pnt &P)
Standard_EXPORT void Add (const TopoDS_Vertex &V)
Standard_EXPORT Standard_Boolean Added () const
 Returns True if the last vertex or point was
succesfully added.
.
Standard_EXPORT void Close ()
Standard_EXPORT const TopoDS_Vertex & FirstVertex () const
Standard_EXPORT const TopoDS_Vertex & LastVertex () const
Standard_EXPORT const TopoDS_Edge & Edge () const
 Returns the last edge added to the polygon.

.
Standard_EXPORT operator TopoDS_Edge () const
Standard_EXPORT const TopoDS_Wire & Wire () const
Standard_EXPORT operator TopoDS_Wire () const

Private Attributes

TopoDS_Vertex myFirstVertex
TopoDS_Vertex myLastVertex
TopoDS_Edge myEdge

Constructor & Destructor Documentation

Standard_EXPORT BRepLib_MakePolygon::BRepLib_MakePolygon  ) 
 

Standard_EXPORT BRepLib_MakePolygon::BRepLib_MakePolygon const gp_Pnt &  P1,
const gp_Pnt &  P2
 

Standard_EXPORT BRepLib_MakePolygon::BRepLib_MakePolygon const gp_Pnt &  P1,
const gp_Pnt &  P2,
const gp_Pnt &  P3,
const Standard_Boolean  Close = Standard_False
 

Standard_EXPORT BRepLib_MakePolygon::BRepLib_MakePolygon const gp_Pnt &  P1,
const gp_Pnt &  P2,
const gp_Pnt &  P3,
const gp_Pnt &  P4,
const Standard_Boolean  Close = Standard_False
 

Standard_EXPORT BRepLib_MakePolygon::BRepLib_MakePolygon const TopoDS_Vertex &  V1,
const TopoDS_Vertex &  V2
 

Standard_EXPORT BRepLib_MakePolygon::BRepLib_MakePolygon const TopoDS_Vertex &  V1,
const TopoDS_Vertex &  V2,
const TopoDS_Vertex &  V3,
const Standard_Boolean  Close = Standard_False
 

Standard_EXPORT BRepLib_MakePolygon::BRepLib_MakePolygon const TopoDS_Vertex &  V1,
const TopoDS_Vertex &  V2,
const TopoDS_Vertex &  V3,
const TopoDS_Vertex &  V4,
const Standard_Boolean  Close = Standard_False
 


Member Function Documentation

Standard_EXPORT void BRepLib_MakePolygon::Add const TopoDS_Vertex &  V  ) 
 

Standard_EXPORT void BRepLib_MakePolygon::Add const gp_Pnt &  P  ) 
 

Standard_EXPORT Standard_Boolean BRepLib_MakePolygon::Added  )  const
 

Standard_EXPORT void BRepLib_MakePolygon::Close  ) 
 

Standard_EXPORT const TopoDS_Edge& BRepLib_MakePolygon::Edge  )  const
 

Standard_EXPORT const TopoDS_Vertex& BRepLib_MakePolygon::FirstVertex  )  const
 

Standard_EXPORT const TopoDS_Vertex& BRepLib_MakePolygon::LastVertex  )  const
 

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

Reimplemented from BRepLib_MakeShape.

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

Reimplemented from BRepLib_MakeShape.

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

Reimplemented from BRepLib_MakeShape.

Standard_EXPORT BRepLib_MakePolygon::operator TopoDS_Edge  )  const
 

Standard_EXPORT BRepLib_MakePolygon::operator TopoDS_Wire  )  const
 

Standard_EXPORT const TopoDS_Wire& BRepLib_MakePolygon::Wire  )  const
 


Field Documentation

TopoDS_Edge BRepLib_MakePolygon::myEdge [private]
 

TopoDS_Vertex BRepLib_MakePolygon::myFirstVertex [private]
 

TopoDS_Vertex BRepLib_MakePolygon::myLastVertex [private]
 


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