#include <FMMdlEdge.h>
Represents facet body edge objects.
Definition at line 40 of file FMMdlEdge.h.
◆ Edge() [1/2]
FacetModeler::Edge::Edge |
( |
| ) |
|
◆ Edge() [2/2]
FacetModeler::Edge::Edge |
( |
Vertex * |
pVertex, |
|
|
Face * |
pFace, |
|
|
Edge * |
pPrevEdge, |
|
|
Edge * |
pPartner |
|
) |
| |
Creates an edge for a given face with specified start vertex, previous edge and edge partner (superposed edge).
- Parameters
-
pVertex | [in] Start vertex for edge. |
pFace | [in] Owner face. |
pPrevEdge | [in] Previous edge. |
pPartner | [in] Edge partner. |
◆ ~Edge()
FacetModeler::Edge::~Edge |
( |
| ) |
|
◆ addNext()
void FacetModeler::Edge::addNext |
( |
Edge * |
pNext | ) |
|
Adds a next edge to the bidirectional list.
- Parameters
-
pNext | [in] Pointer to the edge to add. |
◆ addPartner()
void FacetModeler::Edge::addPartner |
( |
Edge * |
pPartner | ) |
|
Adds a partner edge.
- Parameters
-
pPartner | [in] Partner edge pointer to add. |
◆ angleBetweenEdges()
double FacetModeler::Edge::angleBetweenEdges |
( |
| ) |
const |
Calculates a planar angle between this edge and the previous one.
- Returns
- A planar angle (in radians) between this edge and the previous one as a double value.
◆ angleBetweenFaces()
double FacetModeler::Edge::angleBetweenFaces |
( |
| ) |
const |
Calculates an inner angle between the face that owns this edge and the neighboring face.
- Returns
- An inner angle (in radians) between the face that owns this edge and the neighboring face as a double value.
◆ calculateLoopNormal()
OdGeVector3d FacetModeler::Edge::calculateLoopNormal |
( |
| ) |
const |
Calculates the loop normal.
- Returns
- Edge loop normal multiplied by the area of the edge loop as OdGeVector3d.
◆ color()
OdUInt32 FacetModeler::Edge::color |
( |
| ) |
const |
Gets the color of this edge.
- Returns
- The color of this edge as an OdUInt32 value.
◆ direction()
Calculates the direction vector from the start of this edge to the start of the next one.
- Returns
- Edge direction vector as OdGeVector3d.
◆ endPoint()
const OdGePoint3d & FacetModeler::Edge::endPoint |
( |
| ) |
const |
|
inline |
◆ endVertex()
Vertex * FacetModeler::Edge::endVertex |
( |
| ) |
const |
|
inline |
Gets the end vertex.
- Returns
- Pointer to the last vertex on the edge.
Definition at line 415 of file FMMdlEdge.h.
◆ face()
Face * FacetModeler::Edge::face |
( |
| ) |
const |
Gets the face that owns the edge.
- Returns
- Pointer to the face that owns the edge.
◆ isManifold()
bool FacetModeler::Edge::isManifold |
( |
| ) |
const |
Checks whether the edge is manifold.
- Returns
- true if the edge is between exactly two faces, false otherwise.
◆ isPartner()
bool FacetModeler::Edge::isPartner |
( |
const Edge * |
pEdge | ) |
const |
Checks if the specified edge is a partner edge (superposed edge) to this edge.
- Returns
- true if the edges are partners (superposed), false otherwise.
◆ length()
double FacetModeler::Edge::length |
( |
| ) |
const |
|
inline |
Calculates the length of the edge.
- Returns
- The length of the edge as a double value.
Definition at line 431 of file FMMdlEdge.h.
◆ loop()
Gets the loop that owns the edge.
- Returns
- Pointer to the loop that owns the edge.
Definition at line 419 of file FMMdlEdge.h.
◆ mappingCoord()
const OdGePoint2d & FacetModeler::Edge::mappingCoord |
( |
bool & |
isInitialized | ) |
const |
Gets the mapping coordinate of start vertex of this edge.
- Parameters
-
isInitialized | [out] Determines if the mapping coordinate value was initialized. |
- Returns
- The mapping coordinate of start vertex of this edge.
◆ next()
Edge * FacetModeler::Edge::next |
( |
| ) |
const |
Gets the next edge.
- Returns
- Pointer to the next connected edge.
◆ nextPartner()
Edge * FacetModeler::Edge::nextPartner |
( |
| ) |
const |
Gets the next edge in a single-linked loop of superposed edges.
- Returns
- Pointer to the next superposed edge.
◆ normal()
Calculates the unit normal of the edge on the face.
- Returns
- The unit normal vector to the edge.
◆ pair()
Edge * FacetModeler::Edge::pair |
( |
| ) |
const |
Gets the manifold pair edge.
- Returns
- Pointer to the manifold pair edge.
◆ prev()
Edge * FacetModeler::Edge::prev |
( |
| ) |
const |
Gets the previous edge.
- Returns
- Pointer to the previous connected edge.
◆ removePartner()
void FacetModeler::Edge::removePartner |
( |
| ) |
|
Removes the partner edge.
◆ set()
Sets pointers to the previous and next edges for this edge.
- Parameters
-
pPrev | [in] Previous edge pointer to set. |
pNext | [in] Next edge pointer to set. |
◆ setColor()
Sets the color of this edge.
- Parameters
-
color | [in] New color to set. |
◆ setFace()
void FacetModeler::Edge::setFace |
( |
Face * |
pFace | ) |
|
Sets the owner face of this edge.
- Parameters
-
pFace | [in] Pointer to the owner face to set. |
◆ setLoop()
Sets the owner loop.
- Parameters
-
pLoop | [in] Loop pointer to set. |
Definition at line 439 of file FMMdlEdge.h.
◆ setMappingCoord()
Sets the mapping coordinate of start vertex of this edge.
- Parameters
-
coord | [in] New mapping coordinate to set. |
◆ setNext()
void FacetModeler::Edge::setNext |
( |
Edge * |
pNext | ) |
|
Sets a next edge.
- Parameters
-
pNext | [in] Next edge pointer to set. |
◆ setPair()
void FacetModeler::Edge::setPair |
( |
Edge * |
pPair | ) |
|
Sets a pair edge.
- Parameters
-
pPair | [in] Pair edge pointer to set. |
◆ setPartner()
void FacetModeler::Edge::setPartner |
( |
Edge * |
pPartner | ) |
|
|
inline |
Sets a partner edge.
- Parameters
-
pPartner | [in] Partner edge pointer to set. |
Definition at line 293 of file FMMdlEdge.h.
◆ setPrev()
void FacetModeler::Edge::setPrev |
( |
Edge * |
pPrev | ) |
|
Sets a previous edge.
- Parameters
-
pNext | [in] Previous edge pointer to set. |
◆ setVertex()
void FacetModeler::Edge::setVertex |
( |
Vertex * |
pVertex | ) |
|
Sets a vertex of this edge.
- Parameters
-
pVertex | [in] Vertex pointer to set. |
◆ startPoint()
const OdGePoint3d & FacetModeler::Edge::startPoint |
( |
| ) |
const |
|
inline |
◆ vector()
Gets a vector representation of the edge.
- Returns
- This edge as an OdGeVector3d object with direction from the start point to the end point.
Definition at line 435 of file FMMdlEdge.h.
◆ vertex()
Vertex * FacetModeler::Edge::vertex |
( |
| ) |
const |
Gets the first vertex on the edge.
- Returns
- Pointer to the first vertex on the edge.
◆ zero()
void FacetModeler::Edge::zero |
( |
| ) |
|
Sets all pointers to NULL.
◆ Body
◆ BodyImpl
◆ Face
The documentation for this class was generated from the following file: