mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Fix for IfcAdvancedFace when compiling for 2x3
This commit is contained in:
@@ -889,6 +889,14 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcDerivedProfileDef* l, TopoDS_S
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IfcGeom::Kernel::convert(const IfcSchema::IfcPlane* l, TopoDS_Shape& face) {
|
||||||
|
gp_Pln pln;
|
||||||
|
convert(l, pln);
|
||||||
|
Handle_Geom_Surface surf = new Geom_Plane(pln);
|
||||||
|
face = BRepBuilderAPI_MakeFace(surf, getValue(GV_PRECISION));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef USE_IFC4
|
#ifdef USE_IFC4
|
||||||
|
|
||||||
bool IfcGeom::Kernel::convert(const IfcSchema::IfcBSplineSurfaceWithKnots* l, TopoDS_Shape& face) {
|
bool IfcGeom::Kernel::convert(const IfcSchema::IfcBSplineSurfaceWithKnots* l, TopoDS_Shape& face) {
|
||||||
@@ -939,12 +947,4 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcBSplineSurfaceWithKnots* l, To
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IfcGeom::Kernel::convert(const IfcSchema::IfcPlane* l, TopoDS_Shape& face) {
|
|
||||||
gp_Pln pln;
|
|
||||||
convert(l, pln);
|
|
||||||
Handle_Geom_Surface surf = new Geom_Plane(pln);
|
|
||||||
face = BRepBuilderAPI_MakeFace(surf, getValue(GV_PRECISION));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -53,9 +53,9 @@ SHAPE(IfcCylindricalSurface);
|
|||||||
SHAPE(IfcAdvancedBrep);
|
SHAPE(IfcAdvancedBrep);
|
||||||
// FIXME: Surfaces should have a shape type of their own
|
// FIXME: Surfaces should have a shape type of their own
|
||||||
SHAPE(IfcBSplineSurfaceWithKnots);
|
SHAPE(IfcBSplineSurfaceWithKnots);
|
||||||
SHAPE(IfcPlane);
|
|
||||||
SHAPE(IfcTriangulatedFaceSet);
|
SHAPE(IfcTriangulatedFaceSet);
|
||||||
#endif
|
#endif
|
||||||
|
SHAPE(IfcPlane);
|
||||||
SHAPE(IfcExtrudedAreaSolid);
|
SHAPE(IfcExtrudedAreaSolid);
|
||||||
SHAPE(IfcRevolvedAreaSolid);
|
SHAPE(IfcRevolvedAreaSolid);
|
||||||
SHAPE(IfcConnectedFaceSet);
|
SHAPE(IfcConnectedFaceSet);
|
||||||
|
|||||||
Reference in New Issue
Block a user