mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +00:00
Allow export of mesh edges for structural curve members
This commit is contained in:
@@ -2347,7 +2347,10 @@ class IfcExporter():
|
|||||||
return spline.bezier_points if spline.bezier_points else spline.points
|
return spline.bezier_points if spline.bezier_points else spline.points
|
||||||
|
|
||||||
def create_edge(self, curve):
|
def create_edge(self, curve):
|
||||||
points = self.get_spline_points(curve.splines[0])
|
if hasattr(curve, 'splines'):
|
||||||
|
points = self.get_spline_points(curve.splines[0])
|
||||||
|
else:
|
||||||
|
points = curve.vertices
|
||||||
if not points:
|
if not points:
|
||||||
return
|
return
|
||||||
return self.file.createIfcEdge(
|
return self.file.createIfcEdge(
|
||||||
|
|||||||
Reference in New Issue
Block a user