def draftlibs::fcgeo::arcFromSpline | ( | edge | ) |
def draftlibs::fcgeo::bind | ( | w1, | ||
w2 | ||||
) |
bind(wire1,wire2): binds 2 wires by their endpoints and returns a face
Definition at line 877 of file fcgeo.py.
Referenced by CmdSandboxMeshTestJob::activated(), CmdSandboxMeshLoaderBoost::activated(), Gui::Application::Application(), PartGui::CrossSections::apply(), App::DocumentObserver::attachDocument(), Gui::SelectionObserver::attachSelection(), PartDesignGui::ChamferWidget::ChamferWidget(), 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(), Inspection::Feature::execute(), MeshGui::ViewProviderMesh::getVisibleFacets(), Gui::MergeDocuments::MergeDocuments(), App::Application::newDocument(), Gui::SelectionSingleton::SelectionSingleton(), Gui::Application::slotNewDocument(), Gui::TaskView::TaskAppearance::TaskAppearance(), SketcherGui::TaskSketcherConstrains::TaskSketcherConstrains(), SketcherGui::TaskSketcherMessages::TaskSketcherMessages(), Gui::TaskView::TaskView::TaskView(), Gui::TreeWidget::TreeWidget(), and Gui::WorkbenchGroup::WorkbenchGroup().
def draftlibs::fcgeo::circlefrom1Line2Points | ( | edge, | ||
p1, | ||||
p2 | ||||
) |
def draftlibs::fcgeo::circleFrom1tan1pt1rad | ( | tan1, | ||
p1, | ||||
rad | ||||
) |
def draftlibs::fcgeo::circlefrom2Lines1Point | ( | edge1, | ||
edge2, | ||||
point | ||||
) |
def draftlibs::fcgeo::circleFrom2LinesRadius | ( | edge1, | ||
edge2, | ||||
radius | ||||
) |
def draftlibs::fcgeo::circleFrom2PointsRadius | ( | p1, | ||
p2, | ||||
radius | ||||
) |
def draftlibs::fcgeo::circleFrom2tan1pt | ( | tan1, | ||
tan2, | ||||
point | ||||
) |
def draftlibs::fcgeo::circleFrom2tan1rad | ( | tan1, | ||
tan2, | ||||
rad | ||||
) |
def draftlibs::fcgeo::circleFrom3CircleTangents | ( | circle1, | ||
circle2, | ||||
circle3 | ||||
) |
def draftlibs::fcgeo::circleFrom3LineTangents | ( | edge1, | ||
edge2, | ||||
edge3 | ||||
) |
def draftlibs::fcgeo::circleFromPointLineRadius | ( | point, | ||
edge, | ||||
radius | ||||
) |
def draftlibs::fcgeo::circleInversion | ( | circle, | ||
circle2 | ||||
) |
def draftlibs::fcgeo::complexity | ( | obj | ) |
tests given object for shape complexity: 1: line 2: arc 3: circle 4: open wire with no arc 5: closed wire 6: wire with arcs 7: faces 8: faces with arcs
Definition at line 543 of file fcgeo.py.
Referenced by Gui::SoBoxSelectionRenderActionP::initBoxGraph().
def draftlibs::fcgeo::connect | ( | edges, | ||
closed = False | ||||
) |
connects the edges in the given list by their intersections
Definition at line 693 of file fcgeo.py.
Referenced by Gui::Action::Action(), Gui::TaskView::TaskBox::actionEvent(), Gui::ActionGroup::ActionGroup(), StdViewScreenShot::activated(), CmdTestProgress5::activated(), CmdSandboxMeshTestRef::activated(), CmdSandboxMeshTestJob::activated(), CmdSandboxMeshLoaderFuture::activated(), CmdSandboxMeshLoader::activated(), CmdSandboxEventLoop::activated(), CmdSandboxDocThreadWithFileDlg::activated(), CmdSandboxDocThreadWithDialog::activated(), CmdSandboxPythonThread::activated(), CmdSandboxWorkerThread::activated(), CmdSandboxDocThreadBusy::activated(), CmdSandboxDocThreadWithSeq::activated(), CmdSandboxDocumentTestThread::activated(), CmdSandboxDocumentThread::activated(), Gui::DockWindowManager::addDockWindow(), Gui::WindowAction::addTo(), Gui::ToolBarAction::addTo(), Gui::DockWidgetAction::addTo(), Gui::WorkbenchGroup::addTo(), Gui::MainWindow::addWindow(), WebGui::BrowserView::BrowserView(), Gui::CallTipsList::CallTipsList(), PartDesignGui::ChamferWidget::ChamferWidget(), Gui::PythonConsole::changeEvent(), MeshGui::CleanupHandler::CleanupHandler(), Gui::ColorButton::ColorButton(), Gui::CommandIconView::CommandIconView(), Gui::Dialog::CommandView::CommandView(), Gui::CompletionList::CompletionList(), Gui::ContainerDialog::ContainerDialog(), Gui::TreeWidget::contextMenuEvent(), ImageGui::ImageView::createActions(), Gui::Dialog::DemoMode::DemoMode(), PartGui::DlgBooleanOperation::DlgBooleanOperation(), Gui::Dialog::DlgCustomCommandsImp::DlgCustomCommandsImp(), Gui::Dialog::DlgCustomizeImp::DlgCustomizeImp(), Gui::Dialog::DlgCustomizeSpaceball::DlgCustomizeSpaceball(), MeshGui::DlgEvaluateMeshImp::DlgEvaluateMeshImp(), PartGui::DlgFilletEdges::DlgFilletEdges(), Gui::Dialog::DlgInputDialogImp::DlgInputDialogImp(), Gui::Dialog::DlgParameterImp::DlgParameterImp(), Gui::Dialog::DlgPreferencesImp::DlgPreferencesImp(), PartGui::DlgPrimitives::DlgPrimitives(), Gui::Dialog::DlgRunExternal::DlgRunExternal(), Gui::Dialog::DlgSettingsUnitsImp::DlgSettingsUnitsImp(), MeshGui::DlgSmoothing::DlgSmoothing(), Gui::Dialog::DlgTipOfTheDayImp::DlgTipOfTheDayImp(), Gui::Dialog::DownloadDialog::DownloadDialog(), DrawingGui::DrawingView::DrawingView(), Gui::EditorView::EditorView(), Gui::Dialog::CustomizeActionPage::event(), Gui::Dialog::DlgCustomActionsImp::event(), Inspection::Feature::execute(), Gui::FileChooser::FileChooser(), Gui::FileOptionsDialog::FileOptionsDialog(), PartGui::FilletEdgesDialog::FilletEdgesDialog(), Gui::DockWnd::HelpView::HelpView(), Gui::Dialog::IconDialog::IconDialog(), iisTaskHeader::iisTaskHeader(), ImageGui::ImageView::ImageView(), Gui::HttpServer::incomingConnection(), iisTaskBox::init(), Gui::LabelButton::LabelButton(), Gui::LabelEditor::LabelEditor(), PartGui::LoftWidget::LoftWidget(), Gui::MainWindow::MainWindow(), Gui::View3DInventorViewer::moveCameraTo(), Gui::NetworkRetriever::NetworkRetriever(), CamGui::Cutting::on_start_simulation_clicked(), Gui::ColorButton::onChooseColor(), Gui::Dialog::ParameterValue::ParameterValue(), Gui::Dialog::Placement::Placement(), Gui::View3DInventor::printPreview(), Gui::EditorView::printPreview(), DrawingGui::DrawingView::printPreview(), Gui::ProgressBar::ProgressBar(), Gui::ProgressDialog::ProgressDialog(), Gui::PythonEditor::PythonEditor(), Gui::PythonInputField::PythonInputField(), Gui::PythonStdin::readline(), Gui::RedoAction::RedoAction(), Gui::Dialog::RedoDialog::RedoDialog(), MeshGui::RemoveComponentsDialog::RemoveComponentsDialog(), Gui::SelectModule::SelectModule(), Gui::Action::setCheckable(), InspectionGui::Ui_VisualInspection::setupUi(), TestGui::Ui_UnitTest::setupUi(), MeshPartGui::Ui_Tessellation::setupUi(), Gui::TaskView::Ui_TaskAppearance::setupUi(), Ui_SketchOrientationDialog::setupUi(), Gui::Dialog::Ui_SceneInspector::setupUi(), Gui::Dialog::Ui_Placement::setupUi(), Gui::Dialog::Ui_MouseButtons::setupUi(), SketcherGui::Ui_InsertDatum::setupUi(), Gui::Dialog::Ui_InputVector::setupUi(), Gui::Ui_DlgTreeWidget::setupUi(), Gui::Dialog::Ui_DlgTipOfTheDay::setupUi(), MeshGui::Ui_DlgSmoothing::setupUi(), Gui::Dialog::Ui_DlgSettingsViewColor::setupUi(), MeshGui::Ui_DlgSettingsMeshView::setupUi(), Gui::Dialog::Ui_DlgSettingsMacro::setupUi(), Gui::Dialog::Ui_DlgSettingsImage::setupUi(), Gui::Dialog::Ui_DlgSettingsDocument::setupUi(), Gui::Dialog::Ui_DlgSettingsColorGradient::setupUi(), Gui::Dialog::Ui_DlgSettings3DView::setupUi(), MeshGui::Ui_DlgRegularSolid::setupUi(), Gui::Dialog::Ui_DlgProjectUtility::setupUi(), Gui::Dialog::Ui_DlgProjectInformation::setupUi(), PartGui::Ui_DlgPrimitives::setupUi(), Gui::Dialog::Ui_DlgPreferences::setupUi(), PartGui::Ui_DlgPartImportStep::setupUi(), PartGui::Ui_DlgPartImportIges::setupUi(), PartGui::Ui_DlgPartCylinder::setupUi(), PartGui::Ui_DlgPartBox::setupUi(), Gui::Dialog::Ui_DlgMaterialProperties::setupUi(), Gui::Dialog::Ui_DlgMacroExecute::setupUi(), Gui::Dialog::Ui_DlgInputDialog::setupUi(), MeshGui::Ui_DlgEvaluateMesh::setupUi(), Gui::Dialog::Ui_DlgDisplayProperties::setupUi(), Gui::Dialog::Ui_DlgChooseIcon::setupUi(), Gui::Dialog::Ui_DlgAuthorization::setupUi(), Gui::Dialog::Ui_DlgActivateWindow::setupUi(), Gui::Dialog::Ui_DemoMode::setupUi(), CamGui::Ui_Cutting::setupUi(), Gui::Dialog::Ui_AboutApplication::setupUi(), PartGui::ShapeBuilderWidget::ShapeBuilderWidget(), Gui::TaskView::TaskView::showDialog(), Gui::ControlSingleton::showDialog(), Gui::StdCmdDownloadOnlineHelp::StdCmdDownloadOnlineHelp(), RobotGui::TaskDlgSimulate::TaskDlgSimulate(), RobotGui::TaskEdge2TracParameter::TaskEdge2TracParameter(), PartDesignGui::TaskFilletParameters::TaskFilletParameters(), PartDesignGui::TaskPadParameters::TaskPadParameters(), Gui::Dialog::TaskPlacement::TaskPlacement(), PartDesignGui::TaskPocketParameters::TaskPocketParameters(), PartDesignGui::TaskRevolutionParameters::TaskRevolutionParameters(), RobotGui::TaskRobot6Axis::TaskRobot6Axis(), SketcherGui::TaskSketcherConstrains::TaskSketcherConstrains(), SketcherGui::TaskSketcherGeneral::TaskSketcherGeneral(), RobotGui::TaskTrajectory::TaskTrajectory(), RobotGui::TaskTrajectoryDressUpParameter::TaskTrajectoryDressUpParameter(), test::test(), Gui::DockWnd::TextBrowser::TextBrowser(), Gui::TextEdit::TextEdit(), Gui::TextEditor::TextEditor(), Gui::DockWnd::ToolBox::ToolBox(), RobotGui::TrajectorySimulate::TrajectorySimulate(), Gui::Dialog::Transform::Transform(), Gui::TreeWidget::TreeWidget(), Gui::UIntSpinBox::UIntSpinBox(), Gui::UndoAction::UndoAction(), Gui::Dialog::UndoDialog::UndoDialog(), Gui::View3DInventor::View3DInventor(), InspectionGui::VisualInspection::VisualInspection(), and Gui::WorkbenchComboBox::WorkbenchComboBox().
def draftlibs::fcgeo::determinant | ( | mat, | ||
n | ||||
) |
def draftlibs::fcgeo::findClosest | ( | basepoint, | ||
pointslist | ||||
) |
def draftlibs::fcgeo::findDistance | ( | point, | ||
edge, | ||||
strict = False | ||||
) |
def draftlibs::fcgeo::findEdge | ( | anEdge, | ||
aList | ||||
) |
def draftlibs::fcgeo::findHomotheticCenterOfCircles | ( | circle1, | ||
circle2 | ||||
) |
def draftlibs::fcgeo::findIntersection | ( | edge1, | ||
edge2, | ||||
infinite1 = False , |
||||
infinite2 = False , |
||||
ex1 = False , |
||||
ex2 = False | ||||
) |
def draftlibs::fcgeo::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.
def draftlibs::fcgeo::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
def draftlibs::fcgeo::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
def draftlibs::fcgeo::findWires | ( | edges | ) |
def draftlibs::fcgeo::getBoundaryAngles | ( | angle, | ||
alist | ||||
) |
def draftlibs::fcgeo::getCubicDimensions | ( | shape | ) |
def draftlibs::fcgeo::getTangent | ( | edge, | ||
frompoint = None | ||||
) |
def draftlibs::fcgeo::innerSoddyCircle | ( | circle1, | ||
circle2, | ||||
circle3 | ||||
) |
def draftlibs::fcgeo::isCubic | ( | shape | ) |
def draftlibs::fcgeo::isNull | ( | something | ) |
returns true if the given shape is null or the given placement is 0 or if the given vector is (0,0,0)
Definition at line 68 of file fcgeo.py.
Referenced by Gui::PrefWidget::onRestore(), Gui::PrefColorButton::restorePreferences(), Gui::PrefSlider::restorePreferences(), Gui::PrefRadioButton::restorePreferences(), Gui::PrefCheckBox::restorePreferences(), Gui::PrefComboBox::restorePreferences(), Gui::PrefFileChooser::restorePreferences(), Gui::PrefLineEdit::restorePreferences(), Gui::PrefDoubleSpinBox::restorePreferences(), Gui::PrefSpinBox::restorePreferences(), Gui::PrefColorButton::savePreferences(), Gui::PrefSlider::savePreferences(), Gui::PrefRadioButton::savePreferences(), Gui::PrefCheckBox::savePreferences(), Gui::PrefComboBox::savePreferences(), Gui::PrefFileChooser::savePreferences(), Gui::PrefLineEdit::savePreferences(), Gui::PrefDoubleSpinBox::savePreferences(), and Gui::PrefSpinBox::savePreferences().
def draftlibs::fcgeo::isPtOnEdge | ( | pt, | ||
edge | ||||
) |
def draftlibs::fcgeo::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 draftlibs::fcgeo::offset | ( | edge, | ||
vector | ||||
) |
def draftlibs::fcgeo::offsetWire | ( | wire, | ||
dvec, | ||||
bind = False , |
||||
occ = False | ||||
) |
def draftlibs::fcgeo::outerSoddyCircle | ( | circle1, | ||
circle2, | ||||
circle3 | ||||
) |
def draftlibs::fcgeo::pointInversion | ( | circle, | ||
point | ||||
) |
def draftlibs::fcgeo::polarInversion | ( | circle, | ||
edge | ||||
) |
def draftlibs::fcgeo::removeInterVertices | ( | wire | ) |
def draftlibs::fcgeo::superWire | ( | edgeslist, | ||
closed = False | ||||
) |
def draftlibs::fcgeo::v1 | ( | edge | ) |
Definition at line 64 of file fcgeo.py.
Referenced by Mesh::MeshPy::addFacet(), annRanGauss(), Part::GeometrySurfacePy::bounds(), Part::BSplineSurfacePy::bounds(), Part::BezierSurfacePy::bounds(), SandboxGui::SoWidgetShape::computeBBox(), KDL::cos(), KDL::cosh(), SketcherGui::ViewProviderSketch::draw(), MeshGui::SoFCIndexedFaceSet::drawCoords(), Sketcher::SketchObjectPy::fillet(), SandboxGui::SoWidgetShape::generatePrimitives(), Part::TopoShape::getFaces(), Part::TopoShape::getFacesFromSubelement(), Part::TopoShapeFacePy::getParameterRange(), Gui::SoTextLabel::GLRender(), InspectionGui::ViewProviderInspection::inspectDistance(), Part::BSplineCurvePy::interpolate(), MeshCore::MeshGeomFacet::IntersectBoundingBox(), MeshCore::MeshGeomFacet::IntersectWithPlane(), Part::TopoShape::makeTube(), best_fit::MeshFit_Coarse(), Part::TopoShapePy::mirror(), Sketcher::SketchObjectPy::movePoint(), best_fit::PointCloud_Coarse(), Part::TopoShapeEdgePy::PyInit(), Base::RotationPy::PyInit(), Part::RectangularTrimmedSurfacePy::PyInit(), Part::PlanePy::PyInit(), Part::LinePy::PyInit(), Part::HyperbolaPy::PyInit(), Part::EllipsePy::PyInit(), Part::CylinderPy::PyInit(), Part::ConePy::PyInit(), Part::CirclePy::PyInit(), Base::BoundBoxPy::PyInit(), Part::ArcPy::PyInit(), Part::ArcOfCirclePy::PyInit(), MeshCore::MeshKernel::Read(), Base::VectorPy::richCompare(), Part::BSplineSurfacePy::segment(), Part::BezierSurfacePy::segment(), KDL::sin(), KDL::sinh(), Mesh::MeshPy::splitFacet(), MeshCore::MeshTopoAlgorithm::SwapEdgeBenefit(), KDL::tan(), KDL::tanh(), Part::GeometrySurfacePy::toShape(), Part::GeomSurface::toShape(), PartGui::ViewProviderPartBase::transferToArray(), Raytracing::PovTools::transferToArray(), Sketcher::SketchObjectPy::trim(), and PartGui::ViewProviderPartExt::updateVisual().
def draftlibs::fcgeo::vec | ( | edge | ) |
Definition at line 41 of file fcgeo.py.
Referenced by Base::VectorPy::add(), PartGui::DlgExtrusion::apply(), Part::BSplineCurvePy::approximate(), path_simulate::ConnectPaths_Feat(), ReadDyna::Convert(), Base::VectorPy::cross(), Base::VectorPy::dot(), PartDesign::Pocket::execute(), PartDesign::Pad::execute(), Part::Extrusion::execute(), Part::TopoShapePy::extrude(), Base::VectorPy::getAngle(), Part::BSplineSurfacePy::getPole(), Part::BSplineCurvePy::getPole(), Part::BezierCurvePy::getPole(), Part::BSplineCurvePy::getPoles(), Part::BezierCurvePy::getPoles(), Mesh::MeshPointPy::getVector(), Robot::Trajectory::getVelocity(), Part::BezierCurvePy::insertPoleAfter(), Part::BezierCurvePy::insertPoleBefore(), Base::BoundBoxPy::isInside(), loftOnCurve(), makeBox(), makeCircle(), makeCone(), makeCylinder(), makePlane(), makeRevolution(), Part::TopoShapePy::makeShapeFromMesh(), makeSphere(), makeTorus(), makeWedge(), best_fit::MeshFit_Coarse(), Part::GeometryPy::mirror(), SketcherGui::ViewProviderSketch::mouseMove(), Base::PlacementPy::move(), Mesh::MeshPointPy::move(), Base::MatrixPy::move(), Base::BoundBoxPy::move(), SketcherGui::ViewProviderSketch::moveConstraint(), Mesh::MeshObject::movePoint(), Base::MatrixPy::multiply(), Base::RotationPy::multVec(), Base::PlacementPy::multVec(), Part::TopoShapeFacePy::normalAt(), Gui::Dialog::DemoMode::on_playButton_clicked(), best_fit::PointCloud_Coarse(), Base::MatrixPy::scale(), Part::GeometryPy::scale(), Part::BSplineSurfacePy::setPole(), Part::BSplineCurvePy::setPole(), Part::BezierCurvePy::setPole(), App::PropertyVectorList::setPyObject(), App::PropertyVector::setPyObject(), Part::TopoShapePy::slice(), Part::TopoShapePy::slices(), Base::VectorPy::sub(), path_simulate::TimeCorrection(), Base::MatrixPy::transform(), Part::TopoShapePy::translate(), and Part::GeometryPy::translate().
string draftlibs::fcgeo::__author__ = "Yorik van Havre, Jacques-Antoine Gaudin, Ken Cline" |
string draftlibs::fcgeo::__title__ = "FreeCAD Draft Workbench - Geometry library" |
list draftlibs::fcgeo::__url__ = ["http://free-cad.sourceforge.net"] |
tuple draftlibs::fcgeo::NORM = Vector(0,0,1) |
tuple draftlibs::fcgeo::params = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft") |
tuple draftlibs::fcgeo::precision = params.GetInt("precision") |
Definition at line 36 of file fcgeo.py.
Referenced by Approximate::eFair2().