mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-31 00:46:36 +00:00
Work towards v1.0 data model with encapsulated weak_ptr as basis for instances
This commit is contained in:
@@ -21,16 +21,16 @@
|
||||
#define mapping POSTFIX_SCHEMA(mapping)
|
||||
using namespace ifcopenshell::geometry;
|
||||
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcRightCircularCone* inst) {
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcRightCircularCone& inst) {
|
||||
// @todo
|
||||
return nullptr;
|
||||
/*
|
||||
const double r = inst->BottomRadius() * length_unit_;
|
||||
const double h = inst->Height() * length_unit_;
|
||||
const double r = inst.BottomRadius() * length_unit_;
|
||||
const double h = inst.Height() * length_unit_;
|
||||
|
||||
BRepPrimAPI_MakeCone builder(r, 0., h);
|
||||
gp_Trsf trsf;
|
||||
IfcGeom::Kernel::convert(inst->Position(),trsf);
|
||||
IfcGeom::Kernel::convert(inst.Position(),trsf);
|
||||
|
||||
// IfcCsgPrimitive3D.Position has unit scale factor
|
||||
shape = builder.Solid().Moved(trsf);
|
||||
|
||||
Reference in New Issue
Block a user