INNER CODE UNIT · C++
r
mosra/magnum-integration · src/Magnum/DartIntegration/ConvertShapeNode.cpp:398
Float r = Float(sphereShape->getRadius());
shapeData.scaling = Vector3{r};
}
if(convertTypes & ConvertShapeType::Mesh) {
shapeData.meshes = Containers::Array<Trade::MeshData>(NoInit, 1);
new(&shapeData.meshes[0]) Trade::MeshData{Primitives::icosphereSolid(4)};
}
}
/* Needs to be explicit on GCC 4.8 so it can properly upcast the pointer.
Just std::move() works as well, but that gives a warning on GCC 9. */
return Containers::optional(std::move(shapeData));
}
}}