#include <SoFCMeshNode.h>
|
virtual void | computeBBox (SoAction *action, SbBox3f &box, SbVec3f ¢er) |
| Sets the bounding box of the mesh to box and its center to center. More...
|
|
virtual SoDetail * | createTriangleDetail (SoRayPickAction *action, const SoPrimitiveVertex *v1, const SoPrimitiveVertex *v2, const SoPrimitiveVertex *v3, SoPickedPoint *pp) |
| If the number of triangles exceeds MaximumTriangles 0 is returned. More...
|
|
virtual void | generatePrimitives (SoAction *action) |
| Sets the point indices, the geometric points and the normal for each triangle. More...
|
|
virtual void | getPrimitiveCount (SoGetPrimitiveCountAction *action) |
| Adds the number of the triangles to the SoGetPrimitiveCountAction. More...
|
|
virtual void | GLRender (SoGLRenderAction *action) |
| Either renders the complete mesh or only a subset of the points. More...
|
|
virtual SbBool | readInstance (SoInput *in, unsigned short flags) |
| Reads in the mesh node from the input stream. More...
|
|
◆ SoFCMeshNode()
SoFCMeshNode::SoFCMeshNode |
( |
| ) |
|
◆ computeBBox()
void SoFCMeshNode::computeBBox |
( |
SoAction * |
action, |
|
|
SbBox3f & |
box, |
|
|
SbVec3f & |
center |
|
) |
| |
|
protectedvirtual |
◆ createTriangleDetail()
SoDetail * SoFCMeshNode::createTriangleDetail |
( |
SoRayPickAction * |
action, |
|
|
const SoPrimitiveVertex * |
v1, |
|
|
const SoPrimitiveVertex * |
v2, |
|
|
const SoPrimitiveVertex * |
v3, |
|
|
SoPickedPoint * |
pp |
|
) |
| |
|
protectedvirtual |
If the number of triangles exceeds MaximumTriangles 0 is returned.
This means that the client programmer needs to implement itself to get the index of the picked triangle. If the number of triangles doesn't exceed MaximumTriangles SoShape::createTriangleDetail() gets called. Against the default OpenInventor implementation which returns 0 as well Coin3d fills in the point and face indices.
References MaximumTriangles.
◆ generatePrimitives()
void SoFCMeshNode::generatePrimitives |
( |
SoAction * |
action | ) |
|
|
protectedvirtual |
Sets the point indices, the geometric points and the normal for each triangle.
If the number of triangles exceeds MaximumTriangles then only a triangulation of a rough model is filled in instead. This is due to performance issues.
- See also
- createTriangleDetail().
References MaximumTriangles.
◆ getPrimitiveCount()
void SoFCMeshNode::getPrimitiveCount |
( |
SoGetPrimitiveCountAction * |
action | ) |
|
|
protectedvirtual |
Adds the number of the triangles to the SoGetPrimitiveCountAction.
◆ GLRender()
◆ initClass()
void SoFCMeshNode::initClass |
( |
void |
| ) |
|
|
static |
◆ readInstance()
SbBool SoFCMeshNode::readInstance |
( |
SoInput * |
in, |
|
|
unsigned short |
flags |
|
) |
| |
|
protectedvirtual |
◆ setMesh()
◆ write()
void SoFCMeshNode::write |
( |
SoWriteAction * |
action | ) |
|
|
virtual |
◆ MaximumTriangles
unsigned int MeshGui::SoFCMeshNode::MaximumTriangles |
The documentation for this class was generated from the following files:
- FreeCAD/src/Mod/Mesh/Gui/SoFCMeshNode.h
- FreeCAD/src/Mod/Mesh/Gui/SoFCMeshNode.cpp