Draft: split isClosedEdge form Draft.py
.
This commit is contained in:
committed by
Yorik van Havre
parent
ac13cced02
commit
ad0a400da2
@@ -144,6 +144,9 @@ from draftutils.utils import get_movable_children
|
||||
from draftutils.utils import filter_objects_for_modifiers
|
||||
from draftutils.utils import filterObjectsForModifiers
|
||||
|
||||
from draftutils.utils import is_closed_edge
|
||||
from draftutils.utils import isClosedEdge
|
||||
|
||||
from draftutils.gui_utils import get3DView
|
||||
from draftutils.gui_utils import get_3d_view
|
||||
|
||||
@@ -672,9 +675,6 @@ def copyRotatedEdge(object, edge_index, angle, center, axis):
|
||||
angle, axis, center)
|
||||
return makeLine(vertex1, vertex2)
|
||||
|
||||
def isClosedEdge(edge_index, object):
|
||||
return edge_index + 1 >= len(object.Points)
|
||||
|
||||
|
||||
def array(objectslist,arg1,arg2,arg3,arg4=None,arg5=None,arg6=None):
|
||||
"""array(objectslist,xvector,yvector,xnum,ynum) for rectangular array,
|
||||
|
||||
@@ -980,6 +980,13 @@ def filter_objects_for_modifiers(objects, isCopied=False):
|
||||
filterObjectsForModifiers = filter_objects_for_modifiers
|
||||
|
||||
|
||||
def is_closed_edge(edge_index, object):
|
||||
return edge_index + 1 >= len(object.Points)
|
||||
|
||||
|
||||
isClosedEdge = is_closed_edge
|
||||
|
||||
|
||||
def utf8_decode(text):
|
||||
r"""Decode the input string and return a unicode string.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user