Shape manipulation utilities for the Draft workbench. More...

Namespaces

 DraftGui
 GUI elements and utilities of the Draft workbench.
 

Functions

def DraftGeomUtils.angleBisection (edge1, edge2)
 
def DraftGeomUtils.arcFromSpline (edge)
 
def DraftGeomUtils.areColinear (e1, e2)
 
def DraftGeomUtils.bind (w1, w2)
 
def DraftGeomUtils.calculatePlacement (shape)
 
def DraftGeomUtils.circlefrom1Line2Points (edge, p1, p2)
 
def DraftGeomUtils.circleFrom1tan1pt1rad (tan1, p1, rad)
 
def DraftGeomUtils.circleFrom1tan2pt (tan1, p1, p2)
 
def DraftGeomUtils.circlefrom2Lines1Point (edge1, edge2, point)
 
def DraftGeomUtils.circleFrom2LinesRadius (edge1, edge2, radius)
 
def DraftGeomUtils.circleFrom2PointsRadius (p1, p2, radius)
 
def DraftGeomUtils.circleFrom2tan1pt (tan1, tan2, point)
 
def DraftGeomUtils.circleFrom2tan1rad (tan1, tan2, rad)
 
def DraftGeomUtils.circleFrom3CircleTangents (circle1, circle2, circle3)
 
def DraftGeomUtils.circleFrom3LineTangents (edge1, edge2, edge3)
 
def DraftGeomUtils.circleFrom3tan (tan1, tan2, tan3)
 
def DraftGeomUtils.circleFromPointLineRadius (point, edge, radius)
 
def DraftGeomUtils.circleInversion (circle, circle2)
 
def DraftGeomUtils.cleanFaces (shape)
 
def DraftGeomUtils.cleanProjection (shape, tessellate=True, seglength=.05)
 
def DraftGeomUtils.concatenate (shape)
 
def DraftGeomUtils.connect (edges, closed=False)
 
def DraftGeomUtils.curvetosegment (curve, seglen)
 
def DraftGeomUtils.curvetowire (obj, steps)
 
def DraftGeomUtils.determinant (mat, n)
 
def DraftGeomUtils.edg (p1, p2)
 
def DraftGeomUtils.fillet (lEdges, r, chamfer=False)
 
def DraftGeomUtils.filletWire (aWire, r, chamfer=False)
 
def DraftGeomUtils.findClosest (basepoint, pointslist)
 
def DraftGeomUtils.findClosestCircle (point, circles)
 
def DraftGeomUtils.findDistance (point, edge, strict=False)
 
def DraftGeomUtils.findEdge (anEdge, aList)
 
def DraftGeomUtils.findHomotheticCenterOfCircles (circle1, circle2)
 
def DraftGeomUtils.findIntersection (edge1, edge2, infinite1=False, infinite2=False, ex1=False, ex2=False, dts=True, findAll=False)
 
def DraftGeomUtils.findMidpoint (edge)
 
def DraftGeomUtils.findPerpendicular (point, edgeslist, force=None)
 
def DraftGeomUtils.findRadicalAxis (circle1, circle2)
 
def DraftGeomUtils.findRadicalCenter (circle1, circle2, circle3)
 
def DraftGeomUtils.findWires (edgeslist)
 
def DraftGeomUtils.findWiresOld (edges)
 
def DraftGeomUtils.findWiresOld2 (edgeslist)
 
def DraftGeomUtils.flattenWire (wire)
 
def DraftGeomUtils.geomType (edge)
 
def DraftGeomUtils.getBoundary (shape)
 
def DraftGeomUtils.getBoundaryAngles (angle, alist)
 
def DraftGeomUtils.getCircleFromSpline (edge)
 
def DraftGeomUtils.getCubicDimensions (shape)
 
def DraftGeomUtils.getNormal (shape)
 
def DraftGeomUtils.getQuad (face)
 
def DraftGeomUtils.getRotation (v1, v2=FreeCAD.Vector(0, 0, 1))
 
def DraftGeomUtils.getTangent (edge, frompoint=None)
 
def DraftGeomUtils.getVerts (shape)
 
def DraftGeomUtils.hasCurves (shape)
 
def DraftGeomUtils.hasOnlyWires (shape)
 
def DraftGeomUtils.innerSoddyCircle (circle1, circle2, circle3)
 
def DraftGeomUtils.invert (edge)
 
def DraftGeomUtils.isAligned (edge, axis="x")
 
def DraftGeomUtils.isClockwise (edge, ref=None)
 
def DraftGeomUtils.isCoplanar (faces)
 
def DraftGeomUtils.isCubic (shape)
 
def DraftGeomUtils.isLine (bsp)
 
def DraftGeomUtils.isNull (something)
 
def DraftGeomUtils.isPlanar (shape)
 
def DraftGeomUtils.isPtOnEdge (pt, edge)
 
def DraftGeomUtils.isReallyClosed (wire)
 
def DraftGeomUtils.isSameLine (e1, e2)
 
def DraftGeomUtils.isValidPath (shape)
 
def DraftGeomUtils.isWideAngle (edge)
 
def DraftGeomUtils.linearFromPoints (p1, p2)
 
def DraftGeomUtils.mirror (point, edge)
 
def DraftGeomUtils.offset (edge, vector, trim=False)
 
def DraftGeomUtils.offsetWire (wire, dvec, bind=False, occ=False)
 
def DraftGeomUtils.orientEdge (edge, normal=None, make_arc=False)
 
def DraftGeomUtils.outerSoddyCircle (circle1, circle2, circle3)
 33 to include More...
 
def DraftGeomUtils.pocket2d (shape, offset)
 
def DraftGeomUtils.pointInversion (circle, point)
 
def DraftGeomUtils.polarInversion (circle, edge)
 
def DraftGeomUtils.precision ()
 
def DraftGeomUtils.rebaseWire (wire, vidx)
 
def DraftGeomUtils.removeInterVertices (wire)
 
def DraftGeomUtils.sortEdges (edges)
 
def DraftGeomUtils.sortEdgesOld (lEdges, aVertex=None)
 
def DraftGeomUtils.superWire (edgeslist, closed=False)
 
def DraftGeomUtils.tessellateProjection (shape, seglen)
 
def DraftGeomUtils.v1 (edge)
 
def DraftGeomUtils.vec (edge)
 
def DraftGeomUtils.wiresIntersect (wire1, wire2)
 

Variables

 DraftGeomUtils.NORM = Vector(0,0,1)
 
 DraftGeomUtils.params = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft")
 

Detailed Description

Shape manipulation utilities for the Draft workbench.

Shapes manipulation utilities

Function Documentation

def DraftGeomUtils.arcFromSpline (   edge)
arcFromSpline(edge): turns the given edge into an arc, by taking
its first point, midpoint and endpoint. Works best with bspline
segments such as those from imported svg files. Use this only
if you are sure your edge is really an arc...

References DraftGeomUtils.geomType().

def DraftGeomUtils.areColinear (   e1,
  e2 
)
def DraftGeomUtils.bind (   w1,
  w2 
)
bind(wire1,wire2): binds 2 wires by their endpoints and
returns a face

Referenced by PartDesignGui::Workbench.activated(), Gui::Application.Application(), PartGui::CrossSections.apply(), ArchWall.areSameWallTypes(), PartDesignGui::ViewProviderAddSub.attach(), PartDesignGui::ViewProviderBody.attach(), Gui::DocumentObserver.attachDocument(), App::DocumentObserver.attachDocument(), Gui::SelectionObserver.attachSelection(), Gui::AutoSaveProperty.AutoSaveProperty(), Gui::ExpressionBinding.bind(), MeshCore::MeshCurvature.ComputePerFace(), PartDesignGui::Workbench.deactivated(), PartGui::DlgBooleanOperation.DlgBooleanOperation(), Gui::Dialog::DlgDisplayPropertiesImp.DlgDisplayPropertiesImp(), PartGui::DlgFilletEdges.DlgFilletEdges(), Gui::Document.Document(), Gui::DocumentItem.DocumentItem(), Gui::DocumentModel.DocumentModel(), Gui::DocumentObjectItem.DocumentObjectItem(), App::DocumentObserver.DocumentObserver(), App::DocumentObserverPython.DocumentObserverPython(), Gui::ViewProvider.eventCallback(), Inspection::Feature.execute(), Gui::ViewProviderOriginGroupExtension.extensionAttach(), PartGui::FaceColors.FaceColors(), MeshGui::ViewProviderMesh.getVisibleFacets(), MeshGui::SoFCMeshFaceSet.GLRender(), MeshGui::SoFCMeshObjectShape.GLRender(), MeshGui::SoFCMeshSegmentShape.GLRender(), Gui::GraphvizView.GraphvizView(), Gui::InputField.hasValidInput(), Spreadsheet::PropertySheet.insertRows(), CmdSandboxMeshLoader.isActive(), Gui::SoVRMLAction.isOverrideMode(), Gui::PropertyEditor::PropertyItem.isSeparator(), Gui::ManualAlignment.ManualAlignment(), Gui::MDIView.MDIView(), TechDrawGui::MDIViewPage.MDIViewPage(), App::MergeDocuments.MergeDocuments(), Gui::MergeDocuments.MergeDocuments(), Gui::DAG::Model.Model(), App::Application.newDocument(), DrawingGui::OrthoViews.OrthoViews(), Gui::Dialog::Placement.Placement(), Gui::PropertyView.PropertyView(), Spreadsheet::PropertySheet.removeColumns(), Spreadsheet::PropertySheet.removeRows(), MeshTestJob.run(), Gui::SelectionSingleton.SelectionSingleton(), SketcherGui::ViewProviderSketch.setEdit(), Gui::PropertyEditor::PropertyItem.setPropertyData(), SpreadsheetGui::SheetTableView.setSheet(), PartGui::ViewProviderSpline.setupContextMenu(), FemGui::ViewProviderFemAnalysis.setupContextMenu(), PartDesignGui::ViewProviderBody.setupContextMenu(), MeshGui::ViewProviderMesh.setupContextMenu(), FemGui::FunctionWidget.setViewProvider(), Spreadsheet::Sheet.Sheet(), SpreadsheetGui::SheetModel.SheetModel(), SpreadsheetGui::SheetView.SheetView(), Sketcher::SketchObject.SketchObject(), Gui::ViewProviderPythonFeatureObserver.slotDeleteObject(), Gui::Application.slotNewDocument(), ObjectLabelObserver.slotRelabelObject(), Reen::BSplineParameterCorrection.SolveWithSmoothing(), Gui::ManualAlignment.startAlignment(), MeshGui::MeshFillHole.startEditing(), StdCmdDrawStyle.StdCmdDrawStyle(), Gui::TaskView::TaskAppearance.TaskAppearance(), PartGui::TaskAttacher.TaskAttacher(), SketcherGui::TaskDlgEditSketch.TaskDlgEditSketch(), SandboxGui::TaskPanelView.TaskPanelView(), SketcherGui::TaskSketcherConstrains.TaskSketcherConstrains(), SketcherGui::TaskSketcherElements.TaskSketcherElements(), SketcherGui::TaskSketcherMessages.TaskSketcherMessages(), PartDesignGui::TaskTransformedMessages.TaskTransformedMessages(), Gui::TaskView::TaskView.TaskView(), Gui::TreeWidget.TreeWidget(), Gui::DAG::View.View(), Gui::WorkbenchGroup.WorkbenchGroup(), Gui::DocumentModel.~DocumentModel(), and Gui::DAG::View.~View().

def DraftGeomUtils.calculatePlacement (   shape)
calculatePlacement(shape): if the given shape is planar, this function
returns a placement located at the center of gravity of the shape, and oriented
towards the shape's normal. Otherwise, it returns a null placement.

References DraftGeomUtils.getNormal(), DraftGeomUtils.getRotation(), and DraftGeomUtils.isPlanar().

def DraftGeomUtils.circleFrom1tan1pt1rad (   tan1,
  p1,
  rad 
)
def DraftGeomUtils.circleFrom1tan2pt (   tan1,
  p1,
  p2 
)
def DraftGeomUtils.circlefrom2Lines1Point (   edge1,
  edge2,
  point 
)
def DraftGeomUtils.circleFrom2LinesRadius (   edge1,
  edge2,
  radius 
)
def DraftGeomUtils.circleFrom2PointsRadius (   p1,
  p2,
  radius 
)
def DraftGeomUtils.circleFrom2tan1pt (   tan1,
  tan2,
  point 
)
def DraftGeomUtils.circleFrom2tan1rad (   tan1,
  tan2,
  rad 
)
def DraftGeomUtils.circleFrom3CircleTangents (   circle1,
  circle2,
  circle3 
)
http://en.wikipedia.org/wiki/Problem_of_Apollonius#Inversive_methods
http://mathworld.wolfram.com/ApolloniusCircle.html
http://mathworld.wolfram.com/ApolloniusProblem.html

References DraftGeomUtils.findIntersection(), DraftGeomUtils.geomType(), DraftGeomUtils.innerSoddyCircle(), and DraftGeomUtils.outerSoddyCircle().

Referenced by DraftGeomUtils.circleFrom3tan().

def DraftGeomUtils.circleFrom3tan (   tan1,
  tan2,
  tan3 
)
def DraftGeomUtils.circleFromPointLineRadius (   point,
  edge,
  radius 
)
def DraftGeomUtils.circleInversion (   circle,
  circle2 
)
pointInversion(Circle, Circle)

Circle inversion of a circle.

References DraftVecUtils.dist(), DraftVecUtils.equals(), and DraftGeomUtils.geomType().

def DraftGeomUtils.cleanFaces (   shape)
def DraftGeomUtils.cleanProjection (   shape,
  tessellate = True,
  seglength = .05 
)
def DraftGeomUtils.concatenate (   shape)

References DraftGeomUtils.getBoundary().

Referenced by Draft.upgrade().

def DraftGeomUtils.connect (   edges,
  closed = False 
)
connects the edges in the given list by their intersections

References DraftVecUtils.closest(), DraftGeomUtils.findIntersection(), DraftGeomUtils.findMidpoint(), and DraftGeomUtils.geomType().

Referenced by Gui::Action.Action(), Gui::TaskView::TaskBox.actionEvent(), Gui::ActionGroup.ActionGroup(), Gui::ActionSelector.ActionSelector(), SpreadsheetGui::Workbench.activated(), CmdTestProgress5.activated(), CmdSandboxEventLoop.activated(), CmdSandboxMeshLoader.activated(), StdCmdAlignment.activated(), StdViewScreenShot.activated(), Gui::DockWindowManager.addDockWindow(), Gui::WorkbenchGroup.addTo(), Gui::UndoAction.addTo(), Gui::RedoAction.addTo(), Gui::DockWidgetAction.addTo(), Gui::ToolBarAction.addTo(), Gui::WindowAction.addTo(), Gui::MainWindow.addWindow(), Gui::View3DInventorViewer.animatedViewAll(), FemGui::TaskPostDataAlongLine.applyPythonCode(), WebGui::BrowserView.BrowserView(), Gui::CallTipsList.CallTipsList(), Gui::PythonConsole.changeEvent(), MeshGui::CleanupHandler.CleanupHandler(), PartDesignGui::TaskMultiTransformParameters.clearButtons(), Gui::ColorButton.ColorButton(), ColorPickerPopup.ColorPickerPopup(), Gui::CommandIconView.CommandIconView(), Gui::Dialog::CommandView.CommandView(), Gui::CompletionList.CompletionList(), Gui::PyResource.connect(), Gui::ContainerDialog.ContainerDialog(), WebGui::WebView.contextMenuEvent(), Gui::DAG::Model.contextMenuEvent(), Gui::TreeWidget.contextMenuEvent(), ImageGui::ImageView.createActions(), SpreadsheetGui::SpreadsheetDelegate.createEditor(), Gui::Dialog::DemoMode.DemoMode(), PartGui::DimensionControl.DimensionControl(), PartGui::DlgBooleanOperation.DlgBooleanOperation(), Gui::Dialog::DlgCheckableMessageBox.DlgCheckableMessageBox(), Gui::Dialog::DlgCustomCommandsImp.DlgCustomCommandsImp(), Gui::Dialog::DlgCustomizeImp.DlgCustomizeImp(), Gui::Dialog::DlgCustomizeSpaceball.DlgCustomizeSpaceball(), MeshGui::DlgEvaluateMeshImp.DlgEvaluateMeshImp(), Gui::Dialog::DlgExpressionInput.DlgExpressionInput(), PartGui::DlgFilletEdges.DlgFilletEdges(), Gui::Dialog::DlgInputDialogImp.DlgInputDialogImp(), Gui::Dialog::DlgParameterImp.DlgParameterImp(), Gui::Dialog::DlgPreferencesImp.DlgPreferencesImp(), Gui::Dialog::DlgProjectInformationImp.DlgProjectInformationImp(), PartGui::DlgRevolution.DlgRevolution(), Gui::Dialog::DlgRunExternal.DlgRunExternal(), Gui::Dialog::DlgSettingsDocumentImp.DlgSettingsDocumentImp(), MeshGui::DlgSmoothing.DlgSmoothing(), Gui::Dialog::DlgUnitsCalculator.DlgUnitsCalculator(), Gui::DoubleSpinBox.DoubleSpinBox(), Gui::Dialog::DownloadItem.DownloadItem(), DrawingGui::DrawingView.DrawingView(), Gui::EditorView.EditorView(), Gui::Dialog::DlgCustomActionsImp.event(), Gui::Dialog::CustomizeActionPage.event(), Inspection::Feature.execute(), Gui::ExpressionLineEdit.ExpressionLineEdit(), WebGui::FcCookieJar.FcCookieJar(), Gui::FileChooser.FileChooser(), Gui::FileDialog.FileDialog(), Gui::FileOptionsDialog.FileOptionsDialog(), PartGui::FilletEdgesDialog.FilletEdgesDialog(), Gui::Dialog::DownloadManager.getInstance(), Gui::GraphicsScene.GraphicsScene(), Gui::GraphvizView.GraphvizView(), Gui::GUIApplication.GUIApplication(), Gui::GUISingleApplication.GUISingleApplication(), Gui::Dialog::DownloadManager.handleUnsupportedContent(), Gui::PythonDebugger.hideDebugMarker(), Gui::ActionFunction.hover(), Gui::Dialog::IconDialog.IconDialog(), Gui::Dialog::IconFolders.IconFolders(), iisTaskHeader.iisTaskHeader(), ImageGui::ImageOrientationDialog.ImageOrientationDialog(), ImageGui::ImageView.ImageView(), Gui::HttpServer.incomingConnection(), Web::AppServer.incomingConnection(), iisTaskBox.init(), QSint::ActionGroup.init(), Gui::InputField.InputField(), ColorPickerPopup.insertColor(), Gui::IntSpinBox.IntSpinBox(), CmdSandboxMeshLoader.isActive(), Gui::LabelButton.LabelButton(), Gui::LabelEditor.LabelEditor(), Gui::PropertyEditor::LinkLabel.LinkLabel(), Gui::Dialog::DlgSettings3DViewImp.loadSettings(), Gui::LocationWidget.LocationWidget(), PartGui::LoftWidget.LoftWidget(), Gui::MainWindow.MainWindow(), FemGui::TaskFemConstraintTransform.makeText(), TechDrawGui::MDIViewPage.MDIViewPage(), Gui::DAG::Model.Model(), Gui::View3DInventorViewer.moveCameraTo(), NetworkAccessManager.NetworkAccessManager(), Gui::NetworkRetriever.NetworkRetriever(), DraftGeomUtils.offsetWire(), Gui::ColorButton.onChooseColor(), Gui::QuantitySpinBox.openFormulaDialog(), Rubberband.paintGL(), Param.Param(), Gui::Dialog::ParameterValue.ParameterValue(), Gui::Dialog::Placement.Placement(), FemGui::PlaneWidget.PlaneWidget(), Gui::GraphvizView.printPreview(), TechDrawGui::MDIViewPage.printPreview(), Gui::EditorView.printPreview(), Gui::View3DInventor.printPreview(), DrawingGui::DrawingView.printPreview(), Gui::ProgressBar.ProgressBar(), Gui::ProgressDialog.ProgressDialog(), SpreadsheetGui::PropertiesDialog.PropertiesDialog(), Gui::PropertyEditor::PropertyFloatListItem.PropertyFloatListItem(), Gui::PropertyEditor::PropertyIntegerListItem.PropertyIntegerListItem(), Gui::PropertyListEditor.PropertyListEditor(), Gui::PropertyEditor::PropertyStringListItem.PropertyStringListItem(), Gui::PropertyView.PropertyView(), Gui::PythonEditor.PythonEditor(), Gui::PythonEditorView.PythonEditorView(), TechDrawGui::QGIViewDimension.QGIViewDimension(), QtColorPicker.QtColorPicker(), Gui::QuantitySpinBox.QuantitySpinBox(), Gui::PythonConsole.readline(), Gui::RedoAction.RedoAction(), Gui::Dialog::RedoDialog.RedoDialog(), MeshGui::RemoveComponentsDialog.RemoveComponentsDialog(), Gui::UIntSpinBox.resizeEvent(), Gui::IntSpinBox.resizeEvent(), Gui::DoubleSpinBox.resizeEvent(), MeshTestJob.run(), MeshThread.run(), Gui::Application.runApplication(), PartGui::TaskMeasureLinear.selectionClearDelayedSlot(), PartGui::TaskMeasureAngular.selectionClearDelayedSlot(), Gui::DockWnd::SelectionView.SelectionView(), Gui::SelectModule.SelectModule(), Gui::GUISingleApplication.sendMessage(), Gui::MainWindow.setActiveWindow(), Gui::Action.setCheckable(), Gui::ExpressionLineEdit.setDocumentObject(), DrawingGui::TaskOrthoViews.setPrimary(), Gui::LabelEditor.setText(), TechDrawGui::TaskProjGroup.setupViewCheckboxes(), Gui::PropertyEditor::PropertyStringItem.setValue(), Gui::PropertyEditor::PropertyFontItem.setValue(), Gui::PropertyEditor::PropertyIntegerItem.setValue(), Gui::PropertyEditor::PropertyIntegerConstraintItem.setValue(), Gui::PropertyEditor::PropertyFloatItem.setValue(), Gui::PropertyEditor::PropertyUnitItem.setValue(), Gui::PropertyEditor::PropertyFloatConstraintItem.setValue(), Gui::PropertyEditor::PropertyBoolItem.setValue(), Gui::PropertyEditor::PropertyPlacementItem.setValue(), Gui::PropertyEditor::PropertyEnumItem.setValue(), Gui::PropertyEditor::PropertyColorItem.setValue(), Gui::PropertyEditor::PropertyMaterialItem.setValue(), Gui::PropertyEditor::PropertyMaterialListItem.setValue(), Gui::PropertyEditor::PropertyLinkItem.setValue(), PartGui::ShapeBuilderWidget.ShapeBuilderWidget(), SpreadsheetGui::SheetTableView.SheetTableView(), SpreadsheetGui::SheetView.SheetView(), Gui::ControlSingleton.showDialog(), Gui::TaskView::TaskView.showDialog(), Gui::Assistant.showDocumentation(), Gui::StatusWidget.showText(), SketcherGui::SketcherGeneralWidget.SketcherGeneralWidget(), SketcherGui::SketcherSettings.SketcherSettings(), SketcherGui::SketchOrientationDialog.SketchOrientationDialog(), MeshGui::SmoothingDialog.SmoothingDialog(), FemGui::SphereWidget.SphereWidget(), Gui::ManualAlignment.startAlignment(), Gui::GUISingleApplication::Private.startServer(), Gui::StdCmdDownloadOnlineHelp.StdCmdDownloadOnlineHelp(), PartGui::SteppedSelection.SteppedSelection(), PartGui::SweepWidget.SweepWidget(), PartGui::TaskAttacher.TaskAttacher(), PartDesignGui::TaskBooleanParameters.TaskBooleanParameters(), PartDesignGui::TaskBoxPrimitives.TaskBoxPrimitives(), PartDesignGui::TaskChamferParameters.TaskChamferParameters(), FemGui::TaskCreateNodeSet.TaskCreateNodeSet(), RobotGui::TaskDlgSimulate.TaskDlgSimulate(), PartDesignGui::TaskDraftParameters.TaskDraftParameters(), RobotGui::TaskEdge2TracParameter.TaskEdge2TracParameter(), PartDesignGui::TaskFeaturePick.TaskFeaturePick(), FemGui::TaskFemConstraint.TaskFemConstraint(), FemGui::TaskFemConstraintBearing.TaskFemConstraintBearing(), FemGui::TaskFemConstraintContact.TaskFemConstraintContact(), FemGui::TaskFemConstraintDisplacement.TaskFemConstraintDisplacement(), FemGui::TaskFemConstraintFixed.TaskFemConstraintFixed(), FemGui::TaskFemConstraintFluidBoundary.TaskFemConstraintFluidBoundary(), FemGui::TaskFemConstraintForce.TaskFemConstraintForce(), FemGui::TaskFemConstraintGear.TaskFemConstraintGear(), FemGui::TaskFemConstraintHeatflux.TaskFemConstraintHeatflux(), FemGui::TaskFemConstraintPlaneRotation.TaskFemConstraintPlaneRotation(), FemGui::TaskFemConstraintPressure.TaskFemConstraintPressure(), FemGui::TaskFemConstraintPulley.TaskFemConstraintPulley(), FemGui::TaskFemConstraintTemperature.TaskFemConstraintTemperature(), FemGui::TaskFemConstraintTransform.TaskFemConstraintTransform(), PartDesignGui::TaskFilletParameters.TaskFilletParameters(), TechDrawGui::TaskGeomHatch.TaskGeomHatch(), QSint::TaskHeader.TaskHeader(), PartDesignGui::TaskLinearPatternParameters.TaskLinearPatternParameters(), TechDrawGui::TaskLinkDim.TaskLinkDim(), PartDesignGui::TaskLoftParameters.TaskLoftParameters(), PartDesignGui::TaskMirroredParameters.TaskMirroredParameters(), PartDesignGui::TaskMultiTransformParameters.TaskMultiTransformParameters(), FemGui::TaskObjectName.TaskObjectName(), DrawingGui::TaskOrthoViews.TaskOrthoViews(), PartDesignGui::TaskPadParameters.TaskPadParameters(), SandboxGui::TaskPanelView.TaskPanelView(), PartDesignGui::TaskPipeOrientation.TaskPipeOrientation(), PartDesignGui::TaskPipeParameters.TaskPipeParameters(), PartDesignGui::TaskPipeScaling.TaskPipeScaling(), Gui::Dialog::TaskPlacement.TaskPlacement(), PartDesignGui::TaskPocketParameters.TaskPocketParameters(), PartDesignGui::TaskPolarPatternParameters.TaskPolarPatternParameters(), FemGui::TaskPostDataAlongLine.TaskPostDataAlongLine(), TechDrawGui::TaskProjGroup.TaskProjGroup(), PartDesignGui::TaskRevolutionParameters.TaskRevolutionParameters(), RobotGui::TaskRobot6Axis.TaskRobot6Axis(), PartDesignGui::TaskScaledParameters.TaskScaledParameters(), TechDrawGui::TaskSectionView.TaskSectionView(), PartDesignGui::TaskShapeBinder.TaskShapeBinder(), SketcherGui::TaskSketcherConstrains.TaskSketcherConstrains(), SketcherGui::TaskSketcherElements.TaskSketcherElements(), SketcherGui::TaskSketcherGeneral.TaskSketcherGeneral(), MeshGui::TaskSmoothing.TaskSmoothing(), FemGui::TaskTetParameter.TaskTetParameter(), PartDesignGui::TaskThicknessParameters.TaskThicknessParameters(), RobotGui::TaskTrajectory.TaskTrajectory(), RobotGui::TaskTrajectoryDressUpParameter.TaskTrajectoryDressUpParameter(), MeshPartGui::Tessellation.Tessellation(), test.test(), Gui::TextEdit.TextEdit(), Gui::TextEditor.TextEditor(), Gui::ActionFunction.toggle(), Gui::DockWnd::ToolBox.ToolBox(), Gui::PropertyEditor::PropertyFileItem.toolTip(), Gui::PropertyEditor::PropertyPathItem.toolTip(), Gui::PropertyEditor::PropertyTransientFileItem.toolTip(), RobotGui::TrajectorySimulate.TrajectorySimulate(), Gui::Dialog::Transform.Transform(), Gui::TreeWidget.TreeWidget(), Gui::ActionFunction.trigger(), Gui::UIntSpinBox.UIntSpinBox(), Gui::UndoAction.UndoAction(), Gui::Dialog::UndoDialog.UndoDialog(), Gui::DAG::View.View(), Gui::View3DInventor.View3DInventor(), InspectionGui::VisualInspection.VisualInspection(), Gui::WorkbenchComboBox.WorkbenchComboBox(), Gui::Dialog::DlgCustomizeSpaceball.~DlgCustomizeSpaceball(), ImportGui::Module.~Module(), Gui::PropertyEditor::PlacementEditor.~PlacementEditor(), PartGui::TaskCheckGeometryResults.~TaskCheckGeometryResults(), Gui::TaskCSysDragger.~TaskCSysDragger(), FemGui::TaskFemConstraintContact.~TaskFemConstraintContact(), FemGui::TaskFemConstraintDisplacement.~TaskFemConstraintDisplacement(), FemGui::TaskFemConstraintFixed.~TaskFemConstraintFixed(), FemGui::TaskFemConstraintHeatflux.~TaskFemConstraintHeatflux(), FemGui::TaskFemConstraintPlaneRotation.~TaskFemConstraintPlaneRotation(), FemGui::TaskFemConstraintPressure.~TaskFemConstraintPressure(), FemGui::TaskFemConstraintTemperature.~TaskFemConstraintTemperature(), and Gui::TaskView::TaskWidget.~TaskWidget().

def DraftGeomUtils.curvetosegment (   curve,
  seglen 
)
def DraftGeomUtils.curvetowire (   obj,
  steps 
)
def DraftGeomUtils.determinant (   mat,
  n 
)
determinant(matrix,int) - Determinat function. Returns the determinant
of a n-matrix. It recursively expands the minors.

Referenced by OpenSCADUtils.isspecialorthogonal(), and Base::Matrix4D.~Matrix4D().

def DraftGeomUtils.edg (   p1,
  p2 
)
def DraftGeomUtils.fillet (   lEdges,
  r,
  chamfer = False 
)
fillet(lEdges,r,chamfer=False): Take a list of two Edges & a float as argument,
Returns a list of sorted edges describing a round corner

References DraftGeomUtils.precision(), and Draft.scale().

Referenced by PartGui::DlgFilletEdges.accept(), PartGui::DlgFilletEdges.DlgFilletEdges(), Sketcher::SketchObject.fillet(), DraftGeomUtils.filletWire(), Sketcher::SketchObject.getExternalGeometryCount(), and PartGui::ViewProviderFillet.setEdit().

def DraftGeomUtils.filletWire (   aWire,
  r,
  chamfer = False 
)
Fillets each angle of a wire with r as radius value
if chamfer is true, a chamfer is made instead and r is the
size of the chamfer

References DraftGeomUtils.fillet(), and DraftGeomUtils.isReallyClosed().

Referenced by ArchRebar.makeRebar().

def DraftGeomUtils.findClosest (   basepoint,
  pointslist 
)
findClosest(vector,list)
in a list of 3d points, finds the closest point to the base point.
an index from the list is returned.

Referenced by ArchStructure.StructureTaskPanel.connectNodes(), ArchStructure.StructureTaskPanel.extendNodes(), and DraftTools.Trimex.redraw().

def DraftGeomUtils.findClosestCircle (   point,
  circles 
)
def DraftGeomUtils.findDistance (   point,
  edge,
  strict = False 
)
def DraftGeomUtils.findEdge (   anEdge,
  aList 
)
findEdge(anEdge,aList): returns True if anEdge is found in aList of edges

References DraftVecUtils.equals().

Referenced by Draft.getSVG().

def DraftGeomUtils.findHomotheticCenterOfCircles (   circle1,
  circle2 
)
findHomotheticCenterOfCircles(circle1, circle2)
Calculates the homothetic center(s) of two circles.

http://en.wikipedia.org/wiki/Homothetic_center
http://mathworld.wolfram.com/HomotheticCenter.html

References DraftVecUtils.equals(), DraftGeomUtils.geomType(), and DraftGeomUtils.vec().

def DraftGeomUtils.findIntersection (   edge1,
  edge2,
  infinite1 = False,
  infinite2 = False,
  ex1 = False,
  ex2 = False,
  dts = True,
  findAll = False 
)
def DraftGeomUtils.findPerpendicular (   point,
  edgeslist,
  force = None 
)
findPerpendicular(vector,wire,[force]):
finds the shortest perpendicular distance between a point and an edgeslist.
If force is specified, only the edge[force] will be considered, and it will be
considered infinite.
The function will return a list [vector_from_point_to_closest_edge,edge_index]
or None if no perpendicular vector could be found.

References DraftGeomUtils.findDistance().

Referenced by DraftTools.Offset.action(), PathScripts.PathPocket.ObjectPocket.buildpathocc(), and ArchRoof.makeRoof().

def DraftGeomUtils.findRadicalAxis (   circle1,
  circle2 
)
Calculates the radical axis of two circles.
On the radical axis (also called power line) of two circles any
tangents drawn from a point on the axis to both circles have the same length.

http://en.wikipedia.org/wiki/Radical_axis
http://mathworld.wolfram.com/RadicalLine.html

@sa findRadicalCenter

References DraftVecUtils.dist(), DraftVecUtils.equals(), and DraftGeomUtils.geomType().

Referenced by DraftGeomUtils.findRadicalCenter().

def DraftGeomUtils.findRadicalCenter (   circle1,
  circle2,
  circle3 
)
findRadicalCenter(circle1, circle2, circle3):
Calculates the radical center (also called the power center) of three circles.
It is the intersection point of the three radical axes of the pairs of circles.

http://en.wikipedia.org/wiki/Power_center_(geometry)
http://mathworld.wolfram.com/RadicalCenter.html

@sa findRadicalAxis

References DraftGeomUtils.findIntersection(), DraftGeomUtils.findRadicalAxis(), and DraftGeomUtils.geomType().

def DraftGeomUtils.findWires (   edgeslist)
def DraftGeomUtils.findWiresOld (   edges)
finds connected edges in the list, and returns a list of lists containing edges
that can be connected
def DraftGeomUtils.findWiresOld2 (   edgeslist)
finds connected wires in the given list of edges

References DraftVecUtils.equals().

def DraftGeomUtils.flattenWire (   wire)
flattenWire(wire): forces a wire to get completely flat
along its normal.

References DraftGeomUtils.getNormal().

Referenced by ArchCommands.getShapeFromMesh().

def DraftGeomUtils.geomType (   edge)

Referenced by DraftGeomUtils.angleBisection(), DraftGeomUtils.arcFromSpline(), PathScripts.PathPocket.ObjectPocket.buildpathocc(), DraftGeomUtils.circleFrom1tan1pt1rad(), DraftGeomUtils.circleFrom1tan2pt(), DraftGeomUtils.circleFrom2tan1pt(), DraftGeomUtils.circleFrom2tan1rad(), DraftGeomUtils.circleFrom3CircleTangents(), DraftGeomUtils.circleFrom3tan(), DraftGeomUtils.circleInversion(), PathScripts.PathUtils.cleanedges(), DraftGeomUtils.cleanProjection(), DraftGeomUtils.connect(), Draft.draftify(), importOCA.export(), DraftGeomUtils.findDistance(), DraftGeomUtils.findHomotheticCenterOfCircles(), DraftGeomUtils.findIntersection(), DraftGeomUtils.findMidpoint(), DraftGeomUtils.findRadicalAxis(), DraftGeomUtils.findRadicalCenter(), DraftGeomUtils.getCircleFromSpline(), importOBJ.getIndices(), DraftGeomUtils.getNormal(), ArchVRM.Renderer.getPathData(), importIFC.getRepresentation(), Draft.getSVG(), DraftGeomUtils.getTangent(), importDXF.getWire(), DraftGeomUtils.innerSoddyCircle(), DraftGeomUtils.invert(), DraftGeomUtils.isClockwise(), DraftGeomUtils.isCubic(), DraftGeomUtils.isWideAngle(), Draft.makeCircle(), Draft.makeSketch(), DraftGeomUtils.offset(), DraftGeomUtils.outerSoddyCircle(), DraftGeomUtils.pointInversion(), DraftGeomUtils.polarInversion(), DraftTools.Trimex.redraw(), PathScripts.PathUtils.reverseEdge(), DraftTools.Dimension.setFromSelection(), Draft.shapify(), DraftSnap.Snapper.snap(), DraftSnap.Snapper.snapToExtensions(), DraftSnap.Snapper.snapToOrtho(), DraftSnap.Snapper.snapToPerpendicular(), DraftGeomUtils.sortEdgesOld(), DraftGeomUtils.superWire(), DraftGeomUtils.tessellateProjection(), Draft.upgrade(), and importDXF.writeShape().

def DraftGeomUtils.getBoundary (   shape)
def DraftGeomUtils.getBoundaryAngles (   angle,
  alist 
)
returns the 2 closest angles from the list that
encompass the given angle

Referenced by DraftTools.Dimension.action().

def DraftGeomUtils.getCircleFromSpline (   edge)
def DraftGeomUtils.getCubicDimensions (   shape)
getCubicDimensions(shape): returns a list containing the placement,
the length, the width and the height of a cubic shape. If not cubic, nothing
is returned. The placement point is the lowest corner of the shape.

References DraftVecUtils.angle(), DraftGeomUtils.isCubic(), DraftGeomUtils.precision(), and DraftGeomUtils.vec().

Referenced by ArchCommands.removeShape().

def DraftGeomUtils.getQuad (   face)
getQuad(face): returns a list of 3 vectors (basepoint, Xdir, Ydir) if the face
is a quad, or None if not.

References DraftGeomUtils.precision(), and DraftGeomUtils.vec().

Referenced by WorkingPlane.plane.alignToFace(), SandboxGui::SoWidgetShape.computeBBox(), and SandboxGui::SoWidgetShape.generatePrimitives().

def DraftGeomUtils.getRotation (   v1,
  v2 = FreeCAD.Vector(0,0,1) 
)
Get the rotation Quaternion between 2 vectors

References DraftVecUtils.angle().

Referenced by DraftGeomUtils.calculatePlacement(), and FCSphereSheetProjector.getRotation().

def DraftGeomUtils.getTangent (   edge,
  frompoint = None 
)
returns the tangent to an edge. If from point is given, it is used to
calculate the tangent (only useful for an arc of course).

References DraftGeomUtils.geomType(), and DraftGeomUtils.vec().

Referenced by DraftTools.Offset.action().

def DraftGeomUtils.getVerts (   shape)

Referenced by Draft.offset().

def DraftGeomUtils.hasCurves (   shape)
def DraftGeomUtils.hasOnlyWires (   shape)
def DraftGeomUtils.innerSoddyCircle (   circle1,
  circle2,
  circle3 
)
Computes the inner soddy circle for three tightly packed circles.

References DraftGeomUtils.geomType().

Referenced by DraftGeomUtils.circleFrom3CircleTangents().

def DraftGeomUtils.invert (   edge)
invert(edge): returns an inverted copy of this edge

References DraftGeomUtils.findMidpoint(), DraftGeomUtils.geomType(), and DraftGeomUtils.isLine().

Referenced by Base::Placement.setRotation(), and DraftGeomUtils.sortEdges().

def DraftGeomUtils.isAligned (   edge,
  axis = "x" 
)

Referenced by Draft.makeSketch().

def DraftGeomUtils.isClockwise (   edge,
  ref = None 
)
Returns True if a circle-based edge has a clockwise direction

References DraftVecUtils.angle(), DraftGeomUtils.geomType(), and DraftVecUtils.isNull().

def DraftGeomUtils.isCubic (   shape)
isCubic(shape): verifies if a shape is cubic, that is, has
8 vertices, 6 faces, and all angles are 90 degrees.

References DraftGeomUtils.geomType(), DraftGeomUtils.precision(), and DraftGeomUtils.vec().

Referenced by DraftGeomUtils.getCubicDimensions(), and ArchCommands.removeShape().

def DraftGeomUtils.isLine (   bsp)
def DraftGeomUtils.isPtOnEdge (   pt,
  edge 
)
def DraftGeomUtils.isSameLine (   e1,
  e2 
)
isSameLine(e1,e2): return True if the 2 edges are lines and have the same
points

References DraftVecUtils.equals().

def DraftGeomUtils.isValidPath (   shape)
def DraftGeomUtils.isWideAngle (   edge)
returns True if the given edge is an arc with angle > 180 degrees

References DraftGeomUtils.geomType().

def DraftGeomUtils.linearFromPoints (   p1,
  p2 
)
Calculate linear equation from points.
Calculate the slope and offset parameters of the linear equation of a line defined by two points.

Linear equation:
y = m * x + b
m = dy / dx
m ... Slope
b ... Offset (point where the line intersects the y axis)
dx/dy ... Delta x and y. Using both as a vector results in a non-offset direction vector.
def DraftGeomUtils.mirror (   point,
  edge 
)
def DraftGeomUtils.offset (   edge,
  vector,
  trim = False 
)
offset(edge,vector)
returns a copy of the edge at a certain (vector) distance
if the edge is an arc, the vector will be added at its first point
and a complete circle will be returned

References DraftGeomUtils.geomType().

Referenced by ArchRoof.makeRoof(), and DraftGeomUtils.offsetWire().

def DraftGeomUtils.offsetWire (   wire,
  dvec,
  bind = False,
  occ = False 
)
offsetWire(wire,vector,[bind]): offsets the given wire along the
given vector. The vector will be applied at the first vertex of
the wire. If bind is True (and the shape is open), the original
wire and the offsetted one are bound by 2 edges, forming a face.

References DraftVecUtils.angle(), DraftGeomUtils.connect(), DraftGeomUtils.getNormal(), DraftGeomUtils.isReallyClosed(), DraftGeomUtils.offset(), DraftVecUtils.rotate(), and DraftGeomUtils.vec().

Referenced by DraftTools.Offset.action(), ArchWall.areSameWallTypes(), Part::TopoShape.makeOffsetShape(), and Draft.offset().

def DraftGeomUtils.orientEdge (   edge,
  normal = None,
  make_arc = False 
)
Re-orients 'edge' such that it is in the x-y plane. If 'normal' is passed, this
is used as the basis for the rotation, otherwise the Placement property of 'edge'
is used

References DraftVecUtils.angle().

Referenced by Draft.makeSketch().

def DraftGeomUtils.outerSoddyCircle (   circle1,
  circle2,
  circle3 
)

33 to include

Computes the outer soddy circle for three tightly packed circles.

References DraftGeomUtils.geomType().

Referenced by DraftGeomUtils.circleFrom3CircleTangents().

def DraftGeomUtils.pocket2d (   shape,
  offset 
)
pocket2d(shape,offset): return a list of wires obtained from offsetting the wires from the given shape
by the given offset, and intersection if needed.

References DraftGeomUtils.wiresIntersect().

Referenced by PathScripts.PathPocket.ObjectPocket.buildpathocc(), and PathScripts.PathFacePocket.ObjectFacePocket.execute().

def DraftGeomUtils.pointInversion (   circle,
  point 
)
pointInversion(Circle, Vector)

Circle inversion of a point.
Will calculate the inversed point an return it.
If the given point is equal to the center of the circle "None" will be returned.

See also:
http://en.wikipedia.org/wiki/Inversive_geometry

References DraftVecUtils.dist(), DraftVecUtils.equals(), and DraftGeomUtils.geomType().

Referenced by DraftGeomUtils.polarInversion().

def DraftGeomUtils.polarInversion (   circle,
  edge 
)
polarInversion(circle, edge):
Returns the inversion pole of a line.
edge ... The polar.
i.e. The nearest point on the line is inversed.

http://mathworld.wolfram.com/InversionPole.html

References DraftGeomUtils.findDistance(), DraftGeomUtils.geomType(), and DraftGeomUtils.pointInversion().

def DraftGeomUtils.rebaseWire (   wire,
  vidx 
)
rebaseWire(wire,vidx): returns a new wire which is a copy of the
current wire, but where the first vertex is the vertex indicated by the given
index vidx, starting from 1. 0 will return an exact copy of the wire.

Referenced by PathScripts.PathEngrave.ObjectPathEngrave.buildpathocc(), PathScripts.PathFaceProfile.ObjectFaceProfile.execute(), PathScripts.PathFacePocket.ObjectFacePocket.execute(), and ShapeInfo.sortWires3D().

def DraftGeomUtils.removeInterVertices (   wire)
removeInterVertices(wire) - remove unneeded vertices (those that
are in the middle of a straight line) from a wire, returns a new wire.

References DraftGeomUtils.precision(), and DraftGeomUtils.vec().

Referenced by ArchCommands.makeFace().

def DraftGeomUtils.sortEdges (   edges)
def DraftGeomUtils.sortEdgesOld (   lEdges,
  aVertex = None 
)
def DraftGeomUtils.superWire (   edgeslist,
  closed = False 
)
superWire(edges,[closed]): forces a wire between edges that don't necessarily
have coincident endpoints. If closed=True, wire will always be closed

References DraftGeomUtils.findMidpoint(), and DraftGeomUtils.geomType().

def DraftGeomUtils.tessellateProjection (   shape,
  seglen 
)
Returns projection with BSplines and Ellipses broken into line segments.
    Useful for exporting projected views to *dxf files.

References DraftGeomUtils.curvetosegment(), and DraftGeomUtils.geomType().

def DraftGeomUtils.v1 (   edge)

Referenced by Mesh::MeshPy.addFacet(), TechDrawGeometry::GeometryObject.addGeomFromCompound(), TechDrawGeometry::AOC.AOC(), TechDrawGeometry::AOE.AOE(), Mesh::GTSAlgos.boolean(), MeshPart::MeshAlgos.boolean(), Part::BezierSurfacePy.bounds(), Part::BSplineSurfacePy.bounds(), Part::GeometrySurfacePy.bounds(), InspectionGui.calcArea(), DraftGeomUtils.circleFrom3LineTangents(), Part.closestPointsOnLines(), Part::ParabolaPy.compute(), SandboxGui::SoWidgetShape.computeBBox(), geoff_geometry.corner(), MeshPart::Mesher.createMesh(), TechDraw::DrawViewDimension.dist2Segs(), Part::TopoShapePy.distToShape(), MeshGui::SoFCIndexedFaceSet.doAction(), MeshGui::SoFCMeshObjectShape.doAction(), TechDrawGui::QGIViewDimension.draw(), MeshGui::SoFCIndexedFaceSet.drawCoords(), TechDraw::WalkerEdge.dump(), App::OperatorExpression.eval(), MeshCore::MeshEvalFoldsOnSurface.Evaluate(), Part::RuledSurface.execute(), Drawing::SVGOutput.exportEdges(), Drawing::DXFOutput.exportEdges(), TechDraw::DrawViewPart.extractFaces(), Sketcher::SketchObjectPy.fillet(), MeshGui::MeshFaceAddition.finishEditing(), MeshGui::SoFCMeshNode.generatePrimitives(), SandboxGui::SoWidgetShape.generatePrimitives(), PartGui::SoBrepFaceSet.generatePrimitives(), MeshGui::SoFCMeshFaceSet.generatePrimitives(), MeshGui::SoFCMeshObjectShape.generatePrimitives(), MeshGui::SoFCMeshOpenEdgeSet.generatePrimitives(), MeshGui::SoFCMeshSegmentShape.generatePrimitives(), MeshGui::SoFCMeshObjectBoundary.generatePrimitives(), Span.GetBox(), TechDraw::DrawViewDimension.getDimValue(), TechDraw::DrawProjectSplit.getEdges(), Part::TopoShape.getFaces(), Part::TopoShape.getFacesFromSubelement(), PartGui::ViewProviderPartExt.GetNormals(), Part::TopoShapeFacePy.getParameterRange(), Part::TopoShape.getPoints(), Gui::ViewVolumeProjection.getProjectionMatrix(), Part::GeomArcOfCircle.getRange(), Fem::FemMesh.getVolume(), MeshGui::SoFCMeshNode.GLRender(), Gui::SoTextLabel.GLRender(), SketcherGui::SoDatumLabel.GLRender(), MeshGui::SoFCMeshFaceSet.GLRender(), MeshGui::SoFCMeshObjectShape.GLRender(), MeshGui::SoFCMeshSegmentShape.GLRender(), geoff_geometry.IncludedAngle(), InspectionGui::ViewProviderInspection.inspectDistance(), DoubleAreaPoint.int_point(), Part::BSplineCurve2dPy.interpolate(), Part::BSplineCurvePy.interpolate(), MeshCore::MeshGeomFacet.IntersectBoundingBox(), TechDrawGeometry::AOC.intersectsArc(), MeshCore::MeshGeomFacet.IntersectWithPlane(), geoff_geometry::Triangle3d.Intof(), TechDraw::WalkerEdge.isEqual(), TechDraw::DrawProjectSplit.isOnEdge(), geoff_geometry.LineArcIntof(), geoff_geometry.LineLineIntof(), TechDraw::DrawGeomHatch.makeLine(), Part::TopoShape.makeOffset2D(), Part::TopoShape.makePipeShell(), Part::TopoShape.makeTube(), TechDraw::EdgeWalker.makeUniqueVList(), MeshCore::MeshGeomFacet.MeshGeomFacet(), Part::TopoShapePy.mirror(), Sketcher::SketchObjectPy.movePoint(), CCurve.Offset(), Fem::Constraint.onChanged(), StackWalker.OnLoadModule(), geoff_geometry::Span.OnSpan(), MeshCore::MeshTopoAlgorithm.OptimizeTopology(), MeshCore::MeshProjection.projectLineOnMesh(), Part::Line2dSegmentPy.PyInit(), Part::PlanePy.PyInit(), Part::LineSegmentPy.PyInit(), Part::CylinderPy.PyInit(), Part::HyperbolaPy.PyInit(), Part::Hyperbola2dPy.PyInit(), Part::LinePy.PyInit(), Part::ArcOfCircle2dPy.PyInit(), Part::Circle2dPy.PyInit(), Base::BoundBoxPy.PyInit(), Part::RectangularTrimmedSurfacePy.PyInit(), Part::TopoShapeEdgePy.PyInit(), Part::CirclePy.PyInit(), Part::ConePy.PyInit(), Part::ArcOfCirclePy.PyInit(), Part::Line2dPy.PyInit(), Part::ArcPy.PyInit(), Part::EllipsePy.PyInit(), Part::Ellipse2dPy.PyInit(), Base::RotationPy.PyInit(), MeshCore::MeshKernel.Read(), PartDesignGui::ViewProviderTransformed.recomputeFeature(), TechDraw::DrawProjectSplit.removeDuplicateEdges(), Base::VectorPy.richCompare(), Part::BezierSurfacePy.segment(), Part::BSplineSurfacePy.segment(), Part::GeomArcOfCircle.setRange(), App::OperatorExpression.simplify(), geoff_geometry::Span.Span(), Mesh::MeshPy.splitFacet(), MeshCore::MeshTopoAlgorithm.SwapEdgeBenefit(), geoff_geometry.tangential_arc(), Part.tangentialArc(), Part::GeometrySurfacePy.toShape(), Part::GeomSurface.toShape(), Raytracing::PovTools.transferToArray(), geoff_geometry::Triangle3d.Triangle3d(), Sketcher::SketchObjectPy.trim(), and PartGui::SoBrepEdgeSet.~SoBrepEdgeSet().

def DraftGeomUtils.vec (   edge)

Referenced by Base::VectorPy.add(), DraftUtils::DraftDxfRead.AddObject(), PartGui::DimensionLinear.affectsState(), Gui::ManualAlignment.applyPickedProbe(), FemGui::TaskPostDataAlongLine.applyPythonCode(), Part::BSplineCurvePy.approximate(), Part::BSplineCurve2dPy.approximate(), DraftGeomUtils.areColinear(), ArchWall.areSameWallTypes(), DraftGeomUtils.circlefrom1Line2Points(), DraftGeomUtils.circleFrom2LinesRadius(), DraftGeomUtils.circleFrom2PointsRadius(), DraftGeomUtils.circleFrom3LineTangents(), DraftGeomUtils.circleFromPointLineRadius(), Gui::ViewProvider.claimChildren(), Gui::ViewProvider.claimChildren3D(), Base::BoundBoxPy.closestPoint(), DraftTools.Dimension.createObject(), PointsGui::ViewProviderPointsBuilder.createPoints(), Base::VectorPy.cross(), PointsGui::ViewProviderStructured.cut(), FemGui::TaskCreateNodeSet.DefineNodes(), Base::VectorPy.dot(), TechDrawGui::QGIViewDimension.draw(), Fem::FemVTKTools.exportFluidicResult(), Fem::FemVTKTools.exportMechanicalResult(), Gui::ViewProviderOriginGroupExtension.extensionDragObject(), Gui::ViewProviderGeoFeatureGroupExtension.extensionDragObject(), Gui::ViewProviderOriginGroupExtension.extensionDropObject(), Gui::ViewProviderGeoFeatureGroupExtension.extensionDropObject(), Part::TopoShapePy.extrude(), Part::Extrusion.extrudeShape(), Part::Extrusion.fetchAxisLink(), DraftGeomUtils.findDistance(), DraftGeomUtils.findHomotheticCenterOfCircles(), DraftGeomUtils.findIntersection(), MeshGui::MeshFaceAddition.finishEditing(), Part::Geom2dCurve.firstDerivativeAtParameter(), Part::GeomCurve.firstDerivativeAtParameter(), Base::VectorPy.getAngle(), Fem::FemMesh.getBoundBox(), Part::BSplineCurvePy.getCardinalSplineTangents(), Part::BSplineCurve2dPy.getCardinalSplineTangents(), Path::Command.getCenter(), DraftGeomUtils.getCubicDimensions(), Fem::Tools.getDirection(), Mesh::MeshPy.getEigenSystem(), App::ExtensionContainer.getExtensionsDerivedFrom(), App::ExtensionContainer.getExtensionsDerivedFromType(), Gui::ViewProviderGeoFeatureGroupExtension.getLinkedObjects(), PartGui::ViewProviderPartExt.getModelPoints(), Gui::ViewProvider.getModelPoints(), Fem::FemMeshPy.getNodeById(), Fem::FemMeshPy.getNodes(), Fem::FemMesh.getNodesByEdge(), Fem::FemMesh.getNodesByFace(), Fem::FemMesh.getNodesBySolid(), Fem::FemMesh.getNodesByVertex(), DraftGeomUtils.getNormal(), DraftSnap.Snapper.getPerpendicular(), Path::Command.getPlacement(), importOCA.getpoint(), Gui::View3DInventorPy.getPointOnScreen(), Part::BezierCurvePy.getPole(), Part::BSplineCurvePy.getPole(), Part::BSplineSurfacePy.getPole(), Part::BezierCurvePy.getPoles(), Part::BSplineCurvePy.getPoles(), PartDesign::ProfileBased.getProfileNormal(), DraftGeomUtils.getQuad(), DraftGeomUtils.getTangent(), Mesh::MeshPointPy.getVector(), Robot::Trajectory.getVelocity(), Fem::FemVTKTools.importFluidicResult(), Part::BezierCurvePy.insertPoleAfter(), Part::BezierCurve2dPy.insertPoleAfter(), Part::BezierCurvePy.insertPoleBefore(), Part::BezierCurve2dPy.insertPoleBefore(), Part::BSplineCurvePy.interpolate(), Part::BSplineCurve2dPy.interpolate(), DraftGeomUtils.isCubic(), Base::VectorPy.isEqual(), Fem::Tools.isLinear(), ArchFrame.makeFrame(), Part::TopoShapePy.makeParallelProjection(), Part::TopoShapePy.makePerspectiveProjection(), ArchRebar.makeRebar(), Part::TopoShapePy.makeShapeFromMesh(), ArchStairs.makeStairs(), Part::GeometryPy.mirror(), Part::Geometry2dPy.mirror(), SketcherGui::ViewProviderSketch.mouseMove(), Base::MatrixPy.move(), Mesh::MeshPointPy.move(), Base::AxisPy.move(), Base::PlacementPy.move(), Base::BoundBoxPy.move(), SketcherGui::ViewProviderSketch.moveConstraint(), Mesh::MeshObject.movePoint(), Base::MatrixPy.multiply(), Reen::ScalarProduct.multiply(), Base::PlacementPy.multVec(), Base::RotationPy.multVec(), Part::TopoShapeFacePy.normalAt(), DraftGeomUtils.offsetWire(), Gui::Dialog::DemoMode.on_playButton_clicked(), FemGui::PlaneWidget.onChange(), FemGui::SphereWidget.onChange(), Fem::FemPostPlaneFunction.onChanged(), Fem::FemPostSphereFunction.onChanged(), Gui::ManualAlignment.probePickedCallback(), Part::PlateSurfacePy.PyInit(), DraftTools.Trimex.redraw(), Gui::Dialog::DemoMode.reject(), App::OriginGroupExtension.relinkToOrigin(), DraftGeomUtils.removeInterVertices(), PartDesign::ProfileBased.Restore(), Part::Geometry2dPy.rotate(), Base::MatrixPy.scale(), Part::Geometry2dPy.scale(), Part::GeometryPy.scale(), Base::BoundBoxPy.scale(), Part::Geom2dCurve.secondDerivativeAtParameter(), Part::GeomCurve.secondDerivativeAtParameter(), FemGui::ViewProviderFemMeshPy.setNodeDisplacementByVectors(), Part::BezierCurvePy.setPole(), Part::BezierCurve2dPy.setPole(), Part::BSplineCurve2dPy.setPole(), Part::BSplineCurvePy.setPole(), Part::BSplineSurfacePy.setPole(), App::PropertyVector.setValue(), Part::TopoShapePy.slice(), Part::TopoShapePy.slices(), DraftSnap.Snapper.snapToExtensions(), Path::AreaPy.sortWires(), Base::VectorPy.sub(), Base::MatrixPy.transform(), Data::ComplexGeoData.transformToInside(), Part::Geometry2dPy.translate(), Part::GeometryPy.translate(), Part::TopoShapePy.translate(), DraftTrackers.boxTracker.update(), FemGui::TaskPostBox.updateEnumerationList(), FemGui::ViewProviderFemPostFunctionProvider.updateSize(), TechDraw::DrawUtil.vecRotate(), MeshPart::Module.~Module(), Reen::Module.~Module(), Path::Module.~Module(), Part::Module.~Module(), and PartDesignGui::TaskPipeOrientation.~TaskPipeOrientation().

def DraftGeomUtils.wiresIntersect (   wire1,
  wire2 
)

Variable Documentation

DraftGeomUtils.NORM = Vector(0,0,1)