mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-05 18:20:46 -08:00
Merge pull request #425 from jdegenstein/fix_edge_intersections
Update topology.py to fix Edge.intersections edge length issue #324
This commit is contained in:
commit
0bdaabbb2f
1 changed files with 6 additions and 4 deletions
|
|
@ -4358,12 +4358,14 @@ class Edge(Mixin1D, Shape):
|
|||
Returns:
|
||||
ShapeList[Vector]: list of intersection points
|
||||
"""
|
||||
# Convert an Axis into an edge at least as large as self
|
||||
# Convert an Axis into an edge at least as large as self and Axis start point
|
||||
if isinstance(edge, Axis):
|
||||
self_bbox = self.bounding_box()
|
||||
self_bbox_w_edge = self.bounding_box().add(
|
||||
Vertex(edge.position).bounding_box()
|
||||
)
|
||||
edge = Edge.make_line(
|
||||
edge.position + edge.direction * (-1 * self_bbox.diagonal),
|
||||
edge.position + edge.direction * self_bbox.diagonal,
|
||||
edge.position + edge.direction * (-1 * self_bbox_w_edge.diagonal),
|
||||
edge.position + edge.direction * self_bbox_w_edge.diagonal,
|
||||
)
|
||||
# To determine the 2D plane to work on
|
||||
plane = self.common_plane(edge)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue