38 m_order = WRL1_ORDER::ORD_UNKNOWN;
39 m_Type = WRL1NODES::WRL1_SHAPEHINTS;
47 m_order = WRL1_ORDER::ORD_UNKNOWN;
48 m_Type = WRL1NODES::WRL1_SHAPEHINTS;
59 wxLogTrace(
traceVrmlPlugin, wxT(
" * [INFO] Destroying ShapeHints node." ) );
66 wxCHECK_MSG(
false,
false, wxT(
"AddRefNode is not applicable." ) );
73 wxCHECK_MSG(
false,
false, wxT(
"AddChildNode is not applicable." ) );
79 wxCHECK_MSG( aTopNode,
false, wxT(
"Invalid top node." ) );
81 char tok = proc.
Peek();
86 " * [INFO] bad file format; unexpected eof %s." ),
96 " * [INFO] bad file format; expecting '{' but got '%s' %s.\n"
109 if( proc.
Peek() ==
'}' )
119 __FILE__, __FUNCTION__, __LINE__ , proc.
GetError() );
130 if( !glob.compare(
"vertexOrdering" ) )
136 __FILE__, __FUNCTION__, __LINE__ , proc.
GetError() );
141 if( !glob.compare(
"UNKNOWN_ORDERING" ) )
143 m_order = WRL1_ORDER::ORD_UNKNOWN;
145 else if( !glob.compare(
"CLOCKWISE" ) )
147 m_order = WRL1_ORDER::ORD_CLOCKWISE;
149 else if( !glob.compare(
"COUNTERCLOCKWISE" ) )
157 " * [INFO] bad ShapeHints %s (invalid value '%s')\n"
158 " * [INFO] file: '%s'" ),
165 else if( !glob.compare(
"shapeType" ) )
171 __FILE__, __FUNCTION__, __LINE__ , proc.
GetError() );
180 else if( !glob.compare(
"faceType" ) )
186 __FILE__, __FUNCTION__, __LINE__ , proc.
GetError() );
195 else if( !glob.compare(
"creaseAngle" ) )
203 __FILE__, __FUNCTION__, __LINE__ , proc.
GetError() );
210 else if( tmp > M_PI )
211 tmp =
static_cast<float>( M_PI );
219 " * [INFO] bad ShapeHints %s (unexpected keyword '%s')\n"
220 " * [INFO] file: '%s'" ),
236 wxCHECK_MSG( sp,
nullptr, wxT(
"Invalid base data." ) );
The base class of all Scene Graph nodes.
Represent the top node of a VRML1 model.
The base class of all VRML1 nodes.
virtual bool AddChildNode(WRL1NODE *aNode)
SGNODE * TranslateToSG(SGNODE *aParent, WRL1STATUS *sp) override
Produce a representation of the data using the intermediate scenegraph structures of the kicad_3dsg l...
WRL1SHAPEHINTS(NAMEREGISTER *aDictionary)
virtual ~WRL1SHAPEHINTS()
bool AddChildNode(WRL1NODE *aNode) override
bool Read(WRLPROC &proc, WRL1BASE *aTopNode) override
bool AddRefNode(WRL1NODE *aNode) override
bool ReadSFFloat(float &aSFFloat)
std::string GetFileName(void)
std::string GetError(void)
bool ReadName(std::string &aName)
std::string GetFilePosition() const
const wxChar *const traceVrmlPlugin
Flag to enable VRML plugin trace output.
collects header files for all SG* wrappers and the API