| 115 | } |
| 116 | |
| 117 | OIIO::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 | |
| 142 | IECore::GeometricData::Interpretation geometricInterpretation( OIIO::TypeDesc::VECSEMANTICS semantics ) |
| 143 | { |