Public Member Functions | |
def | assureProperties (self, obj) |
def | execute (self, obj) |
def | onChanged (self, fp, prop) |
def | parameterization (self, pts, a, closed) |
Public Attributes | |
knotSeq | |
Public Attributes inherited from draftobjects.base.DraftObject | |
Type | |
Detailed Description
The BSpline object
Member Function Documentation
◆ assureProperties()
def draftobjects.bspline.BSpline.assureProperties | ( | self, | |
obj | |||
) |
Referenced by draftobjects.bspline.BSpline.execute().
◆ execute()
def draftobjects.bspline.BSpline.execute | ( | self, | |
obj | |||
) |
This method is run when the object is created or recomputed. Override this method to produce effects when the object is newly created, and whenever the document is recomputed. By default it does nothing. Parameters ---------- obj : the scripted object. This commonly may be of types `Part::Part2DObjectPython`, `Part::FeaturePython`, or `App::FeaturePython`.
Reimplemented from draftobjects.base.DraftObject.
References draftobjects.bspline.BSpline.assureProperties(), draftobjects.bspline.BSpline.knotSeq, and draftobjects.bspline.BSpline.parameterization().
Referenced by PathScripts.PathDressupDogbone.ObjectDressup.boneStateList(), ArchSite.Compass.buildCoordinates(), PathScripts.PathDressupHoldingTags.ObjectTagDressup.generateTags(), ArchSchedule.CommandArchSchedule.IsActive(), Mod.PartDesign.Scripts.Spring.MySpring.onChanged(), Mod.PartDesign.Scripts.Epitrochoid.Epitrochoid.onChanged(), Mod.PartDesign.Scripts.Parallelepiped.Parallelepiped.onChanged(), Mod.PartDesign.Scripts.DistanceBolt.DistanceBolt.onChanged(), Mod.PartDesign.Scripts.Parallelepiped.BoxCylinder.onChanged(), PathScripts.PathStock.StockFromBase.onChanged(), PathScripts.PathStock.StockCreateBox.onChanged(), PathScripts.PathStock.StockCreateCylinder.onChanged(), and FeaturePython.DistanceBolt.onChanged().
◆ onChanged()
def draftobjects.bspline.BSpline.onChanged | ( | self, | |
obj, | |||
prop | |||
) |
This method is run when a property is changed. Override this method to handle the behavior of the object depending on changes that occur to its properties. By default it does nothing. Parameters ---------- obj : the scripted object. This commonly may be of types `Part::Part2DObjectPython`, `Part::FeaturePython`, or `App::FeaturePython`. prop : str Name of the property that was modified.
Reimplemented from draftobjects.base.DraftObject.
Referenced by draftviewproviders.view_base.ViewProviderDraft.attach(), ArchSite.Compass.buildCoordinates(), ArchAxis.CommandArchGrid.IsActive(), draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy.updateData(), and draftviewproviders.view_label.ViewProviderLabel.updateData().
◆ parameterization()
def draftobjects.bspline.BSpline.parameterization | ( | self, | |
pts, | |||
a, | |||
closed | |||
) |
Computes a knot Sequence for a set of points. fac (0-1) : parameterization factor fac = 0 -> Uniform / fac=0.5 -> Centripetal / fac=1.0 -> Chord-Length
Referenced by draftobjects.bspline.BSpline.execute().
Member Data Documentation
◆ knotSeq
draftobjects.bspline.BSpline.knotSeq |
Referenced by draftobjects.bspline.BSpline.execute().
The documentation for this class was generated from the following file:
- src/Mod/Draft/draftobjects/bspline.py