mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 16:22:53 +00:00
Fix #3521. Forgot to commit function.
This commit is contained in:
@@ -1765,3 +1765,11 @@ class Drawing(blenderbim.core.tool.Drawing):
|
|||||||
else:
|
else:
|
||||||
result += float(child) * factor
|
result += float(child) * factor
|
||||||
return result * 0.0254
|
return result * 0.0254
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def extend_line(cls, start, end, distance):
|
||||||
|
start = np.array(start)
|
||||||
|
end = np.array(end)
|
||||||
|
direction = end - start
|
||||||
|
offset = distance * (direction / np.linalg.norm(direction))
|
||||||
|
return (start - offset).tolist(), (end + offset).tolist()
|
||||||
|
|||||||
Reference in New Issue
Block a user