MCPcopy Create free account
hub / github.com/ImageEngine/cortex / vecSemantics

Function vecSemantics

src/IECoreImage/OpenImageIOAlgo.cpp:117–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117OIIO::TypeDesc::VECSEMANTICS vecSemantics( IECore::GeometricData::Interpretation interpretation )
118{
119 switch( interpretation )
120 {
121 case GeometricData::Point :
122 return TypeDesc::POINT;
123 case GeometricData::Normal :
124 return TypeDesc::NORMAL;
125 case GeometricData::Vector :
126 return TypeDesc::VECTOR;
127 case GeometricData::Color :
128 return TypeDesc::COLOR;
129
130#if OIIO_VERSION > 10805
131
132 case GeometricData::Rational:
133 return TypeDesc::RATIONAL;
134
135#endif
136
137 default :
138 return TypeDesc::NOXFORM;
139 }
140}
141
142IECore::GeometricData::Interpretation geometricInterpretation( OIIO::TypeDesc::VECSEMANTICS semantics )
143{

Callers 1

DataViewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected