draftobjects.bezcurve.BezCurve Class Reference

Public Member Functions

def createGeometry (self, fp)
 
def execute (self, fp)
 
def onChanged (self, fp, prop)
 
def resetcontinuity (self, fp)
 
def symmetricpoles (cls, knot, p1, p2)
 
def tangentpoles (cls, knot, p1, p2, allowsameside=False)
 
def execute (self, obj)
 
def onChanged (self, obj, prop)
 

Static Public Member Functions

def modifysymmetricpole (knot, p1)
 
def modifytangentpole (knot, p1, oldp2)
 

Additional Inherited Members

- Public Attributes inherited from draftobjects.base.DraftObject
 Type
 

Detailed Description

The BezCurve object

Member Function Documentation

◆ createGeometry()

◆ execute()

def draftobjects.bezcurve.BezCurve.execute (   self,
  obj 
)
Run this method 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.bezcurve.BezCurve.createGeometry(), OpenSCADFeatures.Resize.createGeometry(), OpenSCADFeatures.IncreaseTolerance.createGeometry(), OpenSCADFeatures.Frustum.createGeometry(), OpenSCADFeatures.Twist.createGeometry(), OpenSCADFeatures.PrismaticToroid.createGeometry(), and OpenSCADFeatures.OffsetShape.createGeometry().

Referenced by draftobjects.facebinder.Facebinder.addSubobjects(), PathScripts.PathDressupDogbone.ObjectDressup.boneStateList(), ArchSite.Compass.buildCoordinates(), PathScripts.PathDressupHoldingTags.ObjectTagDressup.generateTags(), ArchPanel.PanelCut.getWires(), ArchSchedule.CommandArchSchedule.IsActive(), Mod.PartDesign.Scripts.DistanceBolt.DistanceBolt.onChanged(), Mod.PartDesign.Scripts.Epitrochoid.Epitrochoid.onChanged(), Mod.PartDesign.Scripts.Parallelepiped.Parallelepiped.onChanged(), Mod.PartDesign.Scripts.Parallelepiped.BoxCylinder.onChanged(), Mod.PartDesign.Scripts.Spring.MySpring.onChanged(), FeaturePython.DistanceBolt.onChanged(), PathScripts.PathStock.StockFromBase.onChanged(), PathScripts.PathStock.StockCreateBox.onChanged(), PathScripts.PathStock.StockCreateCylinder.onChanged(), draftobjects.draftlink.DraftLink.onDocumentRestored(), draftobjects.patharray.PathArray.onDocumentRestored(), and draftobjects.pathtwistedarray.PathTwistedArray.onDocumentRestored().

◆ modifysymmetricpole()

def draftobjects.bezcurve.BezCurve.modifysymmetricpole (   knot,
  p1 
)
static
calculate the coordinates of the opposite pole
of a symmetric knot

◆ modifytangentpole()

def draftobjects.bezcurve.BezCurve.modifytangentpole (   knot,
  p1,
  oldp2 
)
static
calculate the coordinates of the opposite pole
of a tangent knot

◆ onChanged()

def draftobjects.bezcurve.BezCurve.onChanged (   self,
  obj,
  prop 
)

◆ resetcontinuity()

def draftobjects.bezcurve.BezCurve.resetcontinuity (   self,
  fp 
)

References draftobjects.bezcurve.BezCurve._segpoleslst().

Referenced by draftobjects.bezcurve.BezCurve.onChanged().

◆ symmetricpoles()

def draftobjects.bezcurve.BezCurve.symmetricpoles (   cls,
  knot,
  p1,
  p2 
)
Make two poles symmetric respective to the knot.

Referenced by draftobjects.bezcurve.BezCurve.tangentpoles().

◆ tangentpoles()

def draftobjects.bezcurve.BezCurve.tangentpoles (   cls,
  knot,
  p1,
  p2,
  allowsameside = False 
)
Make two poles have the same tangent at knot.

References draftobjects.bezcurve.BezCurve.symmetricpoles().


The documentation for this class was generated from the following file: