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 | |
The BezCurve object
def draftobjects.bezcurve.BezCurve.createGeometry | ( | self, | |
fp | |||
) |
References draftobjects.bezcurve.BezCurve._segpoleslst().
Referenced by draftobjects.bezcurve.BezCurve.execute(), OpenSCADFeatures.Resize.execute(), OpenSCADFeatures.IncreaseTolerance.execute(), OpenSCADFeatures.Frustum.execute(), OpenSCADFeatures.Twist.execute(), OpenSCADFeatures.PrismaticToroid.execute(), OpenSCADFeatures.OffsetShape.execute(), draftobjects.bezcurve.BezCurve.onChanged(), OpenSCADFeatures.Resize.onChanged(), OpenSCADFeatures.IncreaseTolerance.onChanged(), OpenSCADFeatures.Frustum.onChanged(), OpenSCADFeatures.Twist.onChanged(), OpenSCADFeatures.PrismaticToroid.onChanged(), and OpenSCADFeatures.OffsetShape.onChanged().
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().
|
static |
calculate the coordinates of the opposite pole of a symmetric knot
|
static |
calculate the coordinates of the opposite pole of a tangent knot
def draftobjects.bezcurve.BezCurve.onChanged | ( | self, | |
obj, | |||
prop | |||
) |
Run this method 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.
References draftobjects.bezcurve.BezCurve._segpoleslst(), draftobjects.bezcurve.BezCurve.createGeometry(), OpenSCADFeatures.Resize.createGeometry(), OpenSCADFeatures.IncreaseTolerance.createGeometry(), OpenSCADFeatures.Frustum.createGeometry(), OpenSCADFeatures.Twist.createGeometry(), OpenSCADFeatures.PrismaticToroid.createGeometry(), OpenSCADFeatures.OffsetShape.createGeometry(), and draftobjects.bezcurve.BezCurve.resetcontinuity().
Referenced by ArchStructure.CommandStructuralSystem.Activated(), draftviewproviders.view_base.ViewProviderDraft.attach(), ArchSite.Compass.buildCoordinates(), draftobjects.wire.Wire.execute(), ArchBuildingPart.ViewProviderBuildingPart.updateData(), ArchPanel.ViewProviderPanelCut.updateData(), ArchPanel.ViewProviderPanelSheet.updateData(), draftviewproviders.view_label.ViewProviderLabel.updateData(), draftviewproviders.view_layer.ViewProviderLayer.updateData(), and draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy.updateData().
def draftobjects.bezcurve.BezCurve.resetcontinuity | ( | self, | |
fp | |||
) |
References draftobjects.bezcurve.BezCurve._segpoleslst().
Referenced by draftobjects.bezcurve.BezCurve.onChanged().
def draftobjects.bezcurve.BezCurve.symmetricpoles | ( | cls, | |
knot, | |||
p1, | |||
p2 | |||
) |
Make two poles symmetric respective to the knot.
Referenced by draftobjects.bezcurve.BezCurve.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().