Represents an action for IndexedFaceSet VRML node. More...
#include <IndexedFaceSetAction.hpp>
Classes | |
struct | Properties |
Properties for IndexedFaceSetAction . See VRML 2.0 specification for more information. More... | |
Public Member Functions | |
IndexedFaceSetAction (Properties properties, GeometryAction::Properties geometryProperties) | |
Constructs a IndexedFaceSetAction with specified properties. | |
std::shared_ptr< to_geom::conversion_context::MeshTaskConversionContext > | Execute () override |
The method is focused only on geometry field, which is only passed through this method with no modification. | |
![]() | |
GeometryAction (Properties properties) | |
Constructs a GeometryAction with specified properties. | |
![]() | |
virtual | ~ConversionContextAction ()=default |
Virtual default destructor. | |
Additional Inherited Members | |
![]() | |
Properties | m_geometryProperties |
Represents an action for IndexedFaceSet VRML node.
Converts a VRML IndexedFaceSet
node into a geometric representation. Inherits from GeometryAction
.
to_geom::action::IndexedFaceSetAction::IndexedFaceSetAction | ( | IndexedFaceSetAction::Properties | properties, |
GeometryAction::Properties | geometryProperties ) |
Constructs a IndexedFaceSetAction with specified properties.
properties | properties for IndexedFaceSetAction |
geometryProperties | geometry properties |
|
overridevirtual |
The method is focused only on geometry field, which is only passed through this method with no modification.
It is necessary to traverse Coordinate VRML node, which is geometry primitive node (and thus has not been traversed yet). We need to construct a manager and CC map for it and then traverse it. Result is of type Vec3fArrayConversionContext, which stores a reference to data we need. Note that this geometry primitive node should have been validated already in the IndexedFaceSet handler.
Geometry primitive node has been traversed, so we can check if it has any data.
Implements to_geom::action::GeometryAction.