mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Removed sphere radius at some point
This commit is contained in:
@@ -519,7 +519,12 @@ bool IfcGeom::CgalKernel::convert(const IfcSchema::IfcSphere* l, cgal_shape_t& s
|
|||||||
IfcGeom::CgalKernel::convert(l->Position(),trsf);
|
IfcGeom::CgalKernel::convert(l->Position(),trsf);
|
||||||
|
|
||||||
shape = create_polyhedron(face_list);
|
shape = create_polyhedron(face_list);
|
||||||
for (auto &vertex: vertices(shape)) vertex->point() = vertex->point().transform(trsf);
|
for (auto &vertex: vertices(shape)) {
|
||||||
|
vertex->point() = Kernel::Point_3(r*vertex->point().x(),
|
||||||
|
r*vertex->point().y(),
|
||||||
|
r*vertex->point().z());
|
||||||
|
vertex->point() = vertex->point().transform(trsf);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user