Add offset options to Draft PathArray (#8295)

* Add offset options to Draft PathArray

Allows user to specify a starting and ending offset to items in Draft PathArrays.

* [Draft] path array offset

---------

Co-authored-by: Roy-043 <info@b-k-g.nl>
This commit is contained in:
BHennen
2023-03-11 08:54:25 -06:00
committed by GitHub
parent 29ac3191da
commit 74b9d81e7d
3 changed files with 77 additions and 4 deletions

View File

@@ -112,6 +112,8 @@ class PathArray(gui_base_original.Modifier):
tan_vector = App.Vector(1, 0, 0)
force_vertical = False
vertical_vector = App.Vector(0, 0, 1)
start_offset = 0.0
end_offset = 0.0
use_link = self.use_link
_edge_list_str = list()
@@ -134,6 +136,8 @@ class PathArray(gui_base_original.Modifier):
_cmd += "tan_vector=" + DraftVecUtils.toString(tan_vector) + ", "
_cmd += "force_vertical=" + str(force_vertical) + ", "
_cmd += "vertical_vector=" + vertical_vector_str + ", "
_cmd += "start_offset=" + str(start_offset) + ", "
_cmd += "end_offset=" + str(end_offset) + ", "
_cmd += "use_link=" + str(use_link)
_cmd += ")"