mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +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]:
|
||||
direction = coords[1] - coords[0]
|
||||
length = direction.length
|
||||
if round(length, 4) < 0.1:
|
||||
return
|
||||
data = {"coords": coords}
|
||||
|
||||
self.length = length
|
||||
|
||||
@@ -534,8 +534,6 @@ class Polyline(bonsai.core.tool.Polyline):
|
||||
length = (
|
||||
Vector((x, y, z)) - Vector((polyline_points[-1].x, polyline_points[-1].y, polyline_points[-1].z))
|
||||
).length
|
||||
if round(length, 4) < 0.1:
|
||||
return "Cannot create a segment smaller then 10cm"
|
||||
|
||||
polyline_point = polyline_points.add()
|
||||
polyline_point.x = x
|
||||
|
||||
Reference in New Issue
Block a user