vrmlproc & togeom
 
Loading...
Searching...
No Matches
to_geom::action::IndexedFaceSetAction Class Reference

Represents an action for IndexedFaceSet VRML node. More...

#include <IndexedFaceSetAction.hpp>

Inheritance diagram for to_geom::action::IndexedFaceSetAction:
to_geom::action::GeometryAction vrml_proc::action::ConversionContextAction< to_geom::conversion_context::MeshTaskConversionContext >

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::MeshTaskConversionContextExecute () override
 The method is focused only on geometry field, which is only passed through this method with no modification.
 
- Public Member Functions inherited from to_geom::action::GeometryAction
 GeometryAction (Properties properties)
 Constructs a GeometryAction with specified properties.
 
- Public Member Functions inherited from vrml_proc::action::ConversionContextAction< to_geom::conversion_context::MeshTaskConversionContext >
virtual ~ConversionContextAction ()=default
 Virtual default destructor.
 

Additional Inherited Members

- Protected Attributes inherited from to_geom::action::GeometryAction
Properties m_geometryProperties
 

Detailed Description

Represents an action for IndexedFaceSet VRML node.

Converts a VRML IndexedFaceSet node into a geometric representation. Inherits from GeometryAction.

Constructor & Destructor Documentation

◆ IndexedFaceSetAction()

to_geom::action::IndexedFaceSetAction::IndexedFaceSetAction ( IndexedFaceSetAction::Properties properties,
GeometryAction::Properties geometryProperties )

Constructs a IndexedFaceSetAction with specified properties.

Parameters
propertiesproperties for IndexedFaceSetAction
geometryPropertiesgeometry properties

Member Function Documentation

◆ Execute()

std::shared_ptr< to_geom::conversion_context::MeshTaskConversionContext > to_geom::action::IndexedFaceSetAction::Execute ( )
overridevirtual

The method is focused only on geometry field, which is only passed through this method with no modification.

Returns
A shared pointer to the MeshTaskConversionContext.

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.


The documentation for this class was generated from the following files: