CFx SDK Documentation 2024 SP0
|
#include <FMMdlSurface.h>
Public Types | |
enum | Type { kUndefined = 0 , kCylinder = 1 , kCone = 2 , kSphere = 3 , kTorus = 4 , kShaded = 5 } |
Public Member Functions | |
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 Member Functions | |
int | surface_compare (const Surface *pOther, double eps) const |
virtual Surface * | clone (Body &to) const |
Friends | |
class | Body |
class | BodyImpl |
class | BodyCustom |
Represents facet body surface objects.
Definition at line 36 of file FMMdlSurface.h.
Defines surface object types.
Definition at line 55 of file FMMdlSurface.h.
FacetModeler::Surface::Surface | ( | ) |
Default constructor.
FacetModeler::Surface::~Surface | ( | ) |
Destructor.
Creates a clone of the surface in the specified body.
to | [in] Destination body. |
|
virtual |
Compares surfaces with the specified tolerance.
pOther | [in] Other surface to compare with. |
eps | [in] Comparison tolerance. |
Reimplemented in FacetModeler::Cone, FacetModeler::Torus, FacetModeler::Revolution, FacetModeler::Sphere, and FacetModeler::Cylinder.
Creates a copy of the surface to the specified body.
to | [in] Destination body. |
Reimplemented in FacetModeler::ShadedSurface, FacetModeler::Sphere, FacetModeler::Cylinder, FacetModeler::Cone, and FacetModeler::Torus.
Surface * FacetModeler::Surface::next | ( | ) | const |
Gets the next surface in the body.
|
virtual |
Gets the normal at the specified vertex on the specified face.
atV | [in] The vertex at which the normal is computed. |
atF | [in] The face for which the normal is computed. |
Reimplemented in FacetModeler::Sphere, FacetModeler::Cylinder, FacetModeler::Cone, and FacetModeler::Torus.
Sets the pointer to the next item in the list of surfaces.
s | [in] Next surface pointer to set. |
|
protected |
Compares this surface with other by types.
pOther | [in] Other surface pointer. |
eps | [out] Epsilon. |
|
virtual |
Transforms the surface with the given transformation matrix.
x | [in] Given transformation matrix. |
Reimplemented in FacetModeler::Revolution, FacetModeler::Sphere, FacetModeler::Cylinder, FacetModeler::Cone, and FacetModeler::Torus.
|
virtual |
Gets the surface type.
Reimplemented in FacetModeler::ShadedSurface, FacetModeler::Sphere, FacetModeler::Cylinder, FacetModeler::Cone, and FacetModeler::Torus.
|
friend |
Definition at line 182 of file FMMdlSurface.h.
|
friend |
Definition at line 184 of file FMMdlSurface.h.
|
friend |
Definition at line 183 of file FMMdlSurface.h.