Draft: add modules of draftfunctions to the proper Doxygen group
This includes `array`, `cut`, `downgrade`, `draftiffy`, `extrude`, `fuse`, `heal`, `join`, `mirror`, `move`, `offset`, `rotate`, `scale`, `split` and `upgrade`. These are added to the `draftfunction` Doxygen group so that the functions contained in each module are listed appropriately in the automatically generated documentation.
This commit is contained in:
@@ -20,24 +20,19 @@
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************
|
||||
"""This module provides the code for Draft scale function.
|
||||
"""
|
||||
"""Provides functions to scale shapes."""
|
||||
## @package scale
|
||||
# \ingroup DRAFT
|
||||
# \brief This module provides the code for Draft scale function.
|
||||
|
||||
import math
|
||||
# \ingroup draftfuctions
|
||||
# \brief Provides functions to scale shapes.
|
||||
|
||||
## \addtogroup draftfuctions
|
||||
# @{
|
||||
import FreeCAD as App
|
||||
|
||||
import DraftVecUtils
|
||||
|
||||
import draftutils.gui_utils as gui_utils
|
||||
import draftutils.utils as utils
|
||||
|
||||
from draftfunctions.join import join_wires
|
||||
|
||||
from draftmake.make_copy import make_copy
|
||||
import draftutils.gui_utils as gui_utils
|
||||
import draftfunctions.join as join
|
||||
import draftmake.make_copy as make_copy
|
||||
|
||||
|
||||
def scale(objectslist, scale=App.Vector(1,1,1),
|
||||
@@ -70,7 +65,7 @@ def scale(objectslist, scale=App.Vector(1,1,1),
|
||||
newobjlist = []
|
||||
for obj in objectslist:
|
||||
if copy:
|
||||
newobj = make_copy(obj)
|
||||
newobj = make_copy.make_copy(obj)
|
||||
else:
|
||||
newobj = obj
|
||||
if hasattr(obj,'Shape'):
|
||||
@@ -202,7 +197,9 @@ def copy_scaled_edges(arguments):
|
||||
for argument in arguments:
|
||||
copied_edges.append(copyScaledEdge(argument[0], argument[1],
|
||||
argument[2], argument[3]))
|
||||
join_wires(copied_edges)
|
||||
join.join_wires(copied_edges)
|
||||
|
||||
|
||||
copyScaledEdges = copy_scaled_edges
|
||||
|
||||
## @}
|
||||
|
||||
Reference in New Issue
Block a user