#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. 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... | |
Constructor & Destructor Documentation
◆ SoFCMeshSegmentShape()
SoFCMeshSegmentShape::SoFCMeshSegmentShape | ( | ) |
Member Function Documentation
◆ computeBBox()
|
protectedvirtual |
Sets the bounding box of the mesh to box and its center to center.
References Base::BoundBox3< _Precision >::Add(), MeshGui::SoFCMeshObjectElement::get(), Base::BoundBox3< _Precision >::GetCenter(), Mesh::Segment::getIndices(), Base::BoundBox3< _Precision >::MaxX, Base::BoundBox3< _Precision >::MaxY, Base::BoundBox3< _Precision >::MaxZ, Base::BoundBox3< _Precision >::MinX, Base::BoundBox3< _Precision >::MinY, and Base::BoundBox3< _Precision >::MinZ.
◆ generatePrimitives()
|
protectedvirtual |
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.
- See also
- createTriangleDetail().
References Base::Console(), MeshGui::SoFCMeshObjectElement::get(), and Base::ConsoleSingleton::Log().
◆ getPrimitiveCount()
|
protectedvirtual |
Adds the number of the triangles to the SoGetPrimitiveCountAction.
References MeshGui::SoFCMeshObjectElement::get(), and Mesh::Segment::getIndices().
◆ GLRender()
|
protectedvirtual |
Either renders the complete mesh or only a subset of the points.
References MeshGui::SoFCMeshObjectElement::get(), and Gui::SoFCInteractiveElement::get().
◆ initClass()
|
static |
Member Data Documentation
◆ index
SoSFUInt32 MeshGui::SoFCMeshSegmentShape::index |
Referenced by Mod.PartDesign.WizardShaft.SegmentFunction.SegmentFunction::addSegment(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction::begin(), Spreadsheet_legacy.MathParser::getValue(), Spreadsheet_legacy.MathParser::hasNext(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction::interval(), PathScripts.PathJobDlg.JobCreate::item1ValueChanged(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction::length(), Spreadsheet_legacy.MathParser::parseAddition(), Spreadsheet_legacy.MathParser::parseMultiplication(), Spreadsheet_legacy.MathParser::parseNegative(), Spreadsheet_legacy.MathParser::parseNumber(), Spreadsheet_legacy.MathParser::parseParenthesis(), Spreadsheet_legacy.MathParser::parseVariable(), Spreadsheet_legacy.MathParser::peek(), PathScripts.PathJobDlg.JobCreate::setupColumnEditor(), Spreadsheet_legacy.MathParser::skipWhitespace(), automotive_design.index_expression::wr1(), and automotive_design.index_expression::wr2().
◆ renderTriangleLimit
unsigned int MeshGui::SoFCMeshSegmentShape::renderTriangleLimit |
The documentation for this class was generated from the following files:
- src/Mod/Mesh/Gui/SoFCMeshObject.h
- src/Mod/Mesh/Gui/SoFCMeshObject.cpp