Hide menu
Loading...
Searching...
No Matches
cadex::ModelData::Vertex Class Reference

Defines topological vertex. More...

#include <cadex/ModelData/Vertex.hxx>

Inheritance diagram for cadex::ModelData::Vertex:
cadex::ModelData::Shape cadex::BaseObject

Public Member Functions

 Vertex (const Geom::Point &thePoint)
 
Geom::Point Point () const
 Returns a 3D point this vertex resides at.
 
void SetTolerance (double theTolerance)
 Sets vertex tolerance.
 
double Tolerance () const
 Returns vertex tolerance.
 
- Public Member Functions inherited from cadex::ModelData::Shape
ShapeType Type () const
 Returns a shape type. For a null object returns Undefined.
 
ShapeOrientation Orientation () const
 Returns orientation flag.
 
Shape Reversed () const
 Returns a shape that shares the same geometry and subshape graph but has opposite orientation.
 
Shape Oriented (ShapeOrientation theOrientation) const
 Returns a shape that shares the same geometry and subshape graph and has specified orientation.
 
bool IsEqual (const Shape &theOther) const
 Returns true if the shape shares the same geometry and subshape graph, and has equal orientation.
 
bool IsSame (const Shape &theOther) const
 Returns true if the shape shares the same geometry and subshape graph.
 
void SetName (const UTF16String &theName)
 
UTF16String Name () const
 
- Public Member Functions inherited from cadex::BaseObject
size_t Id () const
 Return unique identifier of public object.
 
internal::BaseObjectImpl * Impl () const
 
bool IsNull () const
 
 operator bool () const
 
template<typename T >
bool IsOfType () const
 
template<typename T >
T * Impl () const
 Reserved for internal use.
 

Static Public Member Functions

static const VertexCast (const Shape &theShape)
 
static VertexCast (Shape &theShape)
 
static bool CompareType (const BaseObject &theObject)
 Check the type of object. Returns true if the specified object is this class type.
 
- Static Public Member Functions inherited from cadex::ModelData::Shape
static bool CompareType (const BaseObject &theObject)
 Check the type of object. Returns true if the specified object is this class type.
 

Additional Inherited Members

- Public Types inherited from cadex::BaseObject
typedef std::shared_ptr< internal::BaseObjectImpl > ImplType
 
- Protected Member Functions inherited from cadex::ModelData::Shape
 Shape (const ImplType &theImpl)
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

Defines topological vertex.

The following image depicts an example of a vertex:

Vertex

A vertex resides on a geometrical 3D point returned by Point().

Tolerance

The vertex tolerance (returned by Tolerance()) defines a radius of a radius of a sphere around the vertex point, in which ends of all connecting edges must reside. The tolerance must be equal to greater to tolerance of connecting edges.

Any vertex is created with a default tolerance of 1e-7mm. The tolerance must be equal to greater to tolerance of all connecting edges.

See also
Topological Shapes

Member Function Documentation

◆ SetTolerance()

void cadex::ModelData::Vertex::SetTolerance ( double theTolerance)

Sets vertex tolerance.

If theTolerance is less than 1e-7 then it is ignored.

See also
Tolerance().

◆ Tolerance()

double cadex::ModelData::Vertex::Tolerance ( ) const

Returns vertex tolerance.

See also
SetTolerance()