MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / toColor

Function toColor

source/MRIOExtras/MRStep.cpp:183–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
182#if defined( MRIOEXTRAS_OPENCASCADE_USE_XDE ) && STEP_LOAD_COLORS
183Color toColor( const Quantity_ColorRGBA& rgba )
184{
185 const auto& rgb = rgba.GetRGB();
186 return { (float)rgb.Red(), (float)rgb.Green(), (float)rgb.Blue(), rgba.Alpha() };
187}
188#endif
189
190Vector3d toVector( const gp_XYZ& xyz )

Callers 1

readShapeColors_Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected