|
CFx SDK Documentation 2024 SP0
|
#include <FMMdlSurface.h>
Public Member Functions | |
| ShadedSurface (double creaseAngle=0) | |
| virtual Type | type () const |
| virtual Surface * | copy (Body &to) const |
| void | findSharpEdges (const Body &body, double angleTol) |
| bool | belongsToSharpEdge (const Vertex *vertex) const |
| int | nSharpEdges () const |
| double | creaseAngle () const |
Public Member Functions inherited from FacetModeler::Surface | |
| Surface () | |
| virtual Surface * | copy (Body &to) const |
| virtual Type | type () const |
| virtual OdGeVector3d | normal (const Vertex &atV, const Face &atF) const |
| virtual void | transform (const OdGeMatrix3d &x) |
| virtual int | compare (const Surface *pOther, double eps) const |
| Surface * | next () const |
| void | setNext (Surface *s) |
| ~Surface () | |
Public Member Functions inherited from FacetModeler::Entity | |
| Entity () | |
| Entity (const Entity &ent) | |
| Entity & | operator= (const Entity &entity) |
| OdUInt32 | flags () const |
| void | setFlags (OdUInt32 iFlags) |
| bool | isFlagOn (OdUInt32 iFlag) const |
| void | setIsFlagOn (OdUInt32 iFlag, bool bOn) |
| TagType | tag () const |
| void | setTag (TagType nTag) |
| virtual | ~Entity () |
Protected Attributes | |
| std::set< const Vertex * > | m_setSharpEdge |
| double | m_creaseAngle |
Additional Inherited Members | |
Public Types inherited from FacetModeler::Surface | |
| enum | Type { kUndefined = 0 , kCylinder = 1 , kCone = 2 , kSphere = 3 , kTorus = 4 , kShaded = 5 } |
Protected Member Functions inherited from FacetModeler::Surface | |
| int | surface_compare (const Surface *pOther, double eps) const |
| virtual Surface * | clone (Body &to) const |
Used to mark shaded surfaces in Architecture rendering. Vertex normals will be calculated on faces marked with the same ShadedSurface instance
Definition at line 192 of file FMMdlSurface.h.
| FacetModeler::ShadedSurface::ShadedSurface | ( | double | creaseAngle = 0 | ) |
Constructor. Creates a ShadedSurface
| creaseAngle | [in] The angle between faces to count the edge "smooth". |
| bool FacetModeler::ShadedSurface::belongsToSharpEdge | ( | const Vertex * | vertex | ) | const |
Returns true if the vertex belongs to sharp edge.
| vertex | [in] The vertex to check. |
Creates a copy of the surface to the specified body.
| to | [in] Destination body. |
Reimplemented from FacetModeler::Surface.
| double FacetModeler::ShadedSurface::creaseAngle | ( | ) | const |
Returns the crease angle of this surface.
Finds sharp edges laying on this surface.
| body | [in] Current body. |
| angleTol | [in] The angle threshold to cound edge "sharp". |
| int FacetModeler::ShadedSurface::nSharpEdges | ( | ) | const |
Returns the number of sharp edges for this surface.
|
virtual |
Gets the surface type.
\always returns kShaded for ShadedSurface
Reimplemented from FacetModeler::Surface.
|
protected |
The angle between faces to count the edge "smooth".
Definition at line 250 of file FMMdlSurface.h.
|
protected |
The set of vertexes laying on sharp edges. Sharp edges will not be rendered "smooth" by FMDrawBody.
Definition at line 245 of file FMMdlSurface.h.