You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a scenario where it is desired to close an edge in non construction mode with an edge in construction mode?
If not, perhaps Sketch _startPoint can be changed to something like this:
def_startPoint(self) ->Vector:
ifnotself._edges:
raiseValueError("No free edges available")
# find the first edge matching current edge modemode=self._edges[-1].forConstructionforedgeinreversed(self._edges):
ifedge.forConstruction!=mode:
breakprevedge=edgee=prevedge# current implementation selects first edge:# e = self._edges[0]returne.startPoint()
I didn't find any failing tests with this change.
The text was updated successfully, but these errors were encountered:
Sketch
close()
closes an edge that is not for construction with an edge created withforConstruction=True
.I attempted to close the triangle with itself, however, it was closed with the starting point of the for construction arc.
Uncommenting
assemble()
:A solution is to omit close by explicitly specifying the edge end/start point:
Solution using callback:
Is there a scenario where it is desired to close an edge in non construction mode with an edge in construction mode?
If not, perhaps Sketch
_startPoint
can be changed to something like this:I didn't find any failing tests with this change.
The text was updated successfully, but these errors were encountered: