#include <SoFCMeshObject.h>
Public Member Functions | |
SoFCMeshSegmentShape () | |
Static Public Member Functions | |
static void | initClass () |
Public Attributes | |
SoSFUInt32 | index |
unsigned int | renderTriangleLimit |
Protected Member Functions | |
virtual void | computeBBox (SoAction *action, SbBox3f &box, SbVec3f ¢er) |
Sets the bounding box of the mesh to box and its center to center. | |
virtual void | generatePrimitives (SoAction *action) |
Sets the point indices, the geometric points and the normal for each triangle. | |
virtual void | getPrimitiveCount (SoGetPrimitiveCountAction *action) |
Adds the number of the triangles to the SoGetPrimitiveCountAction. | |
virtual void | GLRender (SoGLRenderAction *action) |
Either renders the complete mesh or only a subset of the points. |
Definition at line 217 of file SoFCMeshObject.h.
SoFCMeshSegmentShape::SoFCMeshSegmentShape | ( | ) |
Definition at line 1139 of file SoFCMeshObject.cpp.
void SoFCMeshSegmentShape::computeBBox | ( | SoAction * | action, | |
SbBox3f & | box, | |||
SbVec3f & | center | |||
) | [protected, virtual] |
Sets the bounding box of the mesh to box and its center to center.
Definition at line 1488 of file SoFCMeshObject.cpp.
References MeshCore::MeshFacet::_aulPoints, Base::BoundBox3< _Precision >::CalcCenter(), Mesh::MeshObject::countSegments(), MeshGui::SoFCMeshObjectElement::get(), MeshCore::MeshKernel::GetFacets(), Mesh::Segment::getIndices(), Mesh::MeshObject::getKernel(), MeshCore::MeshKernel::GetPoints(), Mesh::MeshObject::getSegment(), Base::BoundBox3< _Precision >::MaxX, Base::BoundBox3< _Precision >::MaxY, Base::BoundBox3< _Precision >::MaxZ, Sketcher::mid, Base::BoundBox3< _Precision >::MinX, Base::BoundBox3< _Precision >::MinY, Base::BoundBox3< _Precision >::MinZ, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
void SoFCMeshSegmentShape::generatePrimitives | ( | SoAction * | action | ) | [protected, virtual] |
Sets the point indices, the geometric points and the normal for each triangle.
If the number of triangles exceeds renderTriangleLimit then only a triangulation of a rough model is filled in instead. This is due to performance issues.
Definition at line 1401 of file SoFCMeshObject.cpp.
References MeshCore::MeshFacet::_aulPoints, Base::Console(), Mesh::MeshObject::countSegments(), MeshGui::SoFCMeshObjectElement::get(), MeshCore::MeshKernel::GetFacets(), importOBJ::getIndices(), Mesh::MeshObject::getKernel(), MeshCore::MeshKernel::GetPoints(), Mesh::MeshObject::getSegment(), sbvec3f(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
void SoFCMeshSegmentShape::getPrimitiveCount | ( | SoGetPrimitiveCountAction * | action | ) | [protected, virtual] |
Adds the number of the triangles to the SoGetPrimitiveCountAction.
Definition at line 1522 of file SoFCMeshObject.cpp.
References Mesh::MeshObject::countSegments(), MeshGui::SoFCMeshObjectElement::get(), Mesh::Segment::getIndices(), and Mesh::MeshObject::getSegment().
void SoFCMeshSegmentShape::GLRender | ( | SoGLRenderAction * | action | ) | [protected, virtual] |
Either renders the complete mesh or only a subset of the points.
Definition at line 1148 of file SoFCMeshObject.cpp.
References Mesh::MeshObject::countFacets(), MeshGui::SoFCMeshObjectElement::get(), Gui::SoFCInteractiveElement::get(), and renderTriangleLimit.
void SoFCMeshSegmentShape::initClass | ( | void | ) | [static] |
Definition at line 1134 of file SoFCMeshObject.cpp.
Referenced by initMeshGui().
SoSFUInt32 MeshGui::SoFCMeshSegmentShape::index |
Definition at line 226 of file SoFCMeshObject.h.
unsigned int MeshGui::SoFCMeshSegmentShape::renderTriangleLimit |
Definition at line 227 of file SoFCMeshObject.h.
Referenced by GLRender().