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 
)

◆ execute()

◆ 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

The documentation for this class was generated from the following file:
  • src/Mod/Draft/draftobjects/bspline.py