mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 19:27:10 +00:00
Fix null pointer access in tesselation of opencascade shape
This commit is contained in:
@@ -11,7 +11,10 @@
|
|||||||
void IfcGeom::OpenCascadeShape::Triangulate(const IfcGeom::IteratorSettings& settings, const IfcGeom::ConversionResultPlacement* place, IfcGeom::Representation::Triangulation<double>* t, int surface_style_id) const {
|
void IfcGeom::OpenCascadeShape::Triangulate(const IfcGeom::IteratorSettings& settings, const IfcGeom::ConversionResultPlacement* place, IfcGeom::Representation::Triangulation<double>* t, int surface_style_id) const {
|
||||||
|
|
||||||
const TopoDS_Shape& s = shape_;
|
const TopoDS_Shape& s = shape_;
|
||||||
const gp_GTrsf& trsf = dynamic_cast<const OpenCascadePlacement*>(place)->trsf();
|
gp_GTrsf trsf;
|
||||||
|
if (place) {
|
||||||
|
trsf = dynamic_cast<const OpenCascadePlacement*>(place)->trsf();
|
||||||
|
}
|
||||||
|
|
||||||
// Triangulate the shape
|
// Triangulate the shape
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user