diff --git a/src/ifcgeom/mapping/IfcSphericalSurface.cpp b/src/ifcgeom/mapping/IfcSphericalSurface.cpp index 13c2286e03..05ffd7f905 100644 --- a/src/ifcgeom/mapping/IfcSphericalSurface.cpp +++ b/src/ifcgeom/mapping/IfcSphericalSurface.cpp @@ -24,16 +24,10 @@ using namespace ifcopenshell::geometry; #ifdef SCHEMA_HAS_IfcSphericalSurface taxonomy::ptr mapping::map_impl(const IfcSchema::IfcSphericalSurface* inst) { - return nullptr; - - /* - gp_Trsf trsf; - IfcGeom::Kernel::convert(inst->Position(), trsf); - - // IfcElementarySurface.Position has unit scale factor - face = BRepBuilderAPI_MakeFace(new Geom_SphericalSurface(gp::XOY(), inst->Radius() * length_unit_), getValue(GV_PRECISION)).Face().Moved(trsf); - return true; - */ + auto s = taxonomy::make(); + s->radius = inst->Radius() * length_unit_; + s->matrix = taxonomy::cast(map(inst->Position())); + return s; } #endif