mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Remove polyline wall size limit restriction. See #6162
This commit is contained in:
@@ -712,8 +712,6 @@ class DumbWallGenerator:
|
|||||||
def create_wall_from_2_points(self, coords, should_round=False) -> Union[dict[str, Any], None]:
|
def create_wall_from_2_points(self, coords, should_round=False) -> Union[dict[str, Any], None]:
|
||||||
direction = coords[1] - coords[0]
|
direction = coords[1] - coords[0]
|
||||||
length = direction.length
|
length = direction.length
|
||||||
if round(length, 4) < 0.1:
|
|
||||||
return
|
|
||||||
data = {"coords": coords}
|
data = {"coords": coords}
|
||||||
|
|
||||||
self.length = length
|
self.length = length
|
||||||
|
|||||||
@@ -534,8 +534,6 @@ class Polyline(bonsai.core.tool.Polyline):
|
|||||||
length = (
|
length = (
|
||||||
Vector((x, y, z)) - Vector((polyline_points[-1].x, polyline_points[-1].y, polyline_points[-1].z))
|
Vector((x, y, z)) - Vector((polyline_points[-1].x, polyline_points[-1].y, polyline_points[-1].z))
|
||||||
).length
|
).length
|
||||||
if round(length, 4) < 0.1:
|
|
||||||
return "Cannot create a segment smaller then 10cm"
|
|
||||||
|
|
||||||
polyline_point = polyline_points.add()
|
polyline_point = polyline_points.add()
|
||||||
polyline_point.x = x
|
polyline_point.x = x
|
||||||
|
|||||||
Reference in New Issue
Block a user