mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 19:16:24 +00:00
Check for NULL placement
This commit is contained in:
@@ -6,9 +6,9 @@ void IfcGeom::CgalShape::Triangulate(const IfcGeom::IteratorSettings & settings,
|
|||||||
const cgal_placement_t& trsf = dynamic_cast<const CgalPlacement*>(place)->trsf();
|
const cgal_placement_t& trsf = dynamic_cast<const CgalPlacement*>(place)->trsf();
|
||||||
|
|
||||||
// Apply transformation
|
// Apply transformation
|
||||||
// for (auto &vertex: vertices(s)) {
|
if (place != NULL) for (auto &vertex: vertices(s)) {
|
||||||
// vertex->point() = vertex->point().transform(trsf);
|
vertex->point() = vertex->point().transform(trsf);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// Triangulate the shape and compute the normals
|
// Triangulate the shape and compute the normals
|
||||||
std::map<cgal_vertex_descriptor_t, Kernel::Vector_3> vertex_normals;
|
std::map<cgal_vertex_descriptor_t, Kernel::Vector_3> vertex_normals;
|
||||||
|
|||||||
Reference in New Issue
Block a user