Functions | |
def | angle |
def | dist |
def | equals |
def | find |
def | getPlaneRotation |
def | isColinear |
def | isNull |
def | neg |
def | precision |
def | project |
def | removeDoubles |
def | rotate |
def | rotate2D |
def | rounded |
def | scale |
def | scaleTo |
def | tup |
def | typecheck |
Variables | |
string | __author__ = "Yorik van Havre, Werner Mayer, Martin Burbaum, Ken Cline" |
string | __title__ = "FreeCAD Draft Workbench - Vector library" |
list | __url__ = ["http://free-cad.sourceforge.net"] |
tuple | params = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft") |
angle(Vector,[Vector],[Vector]) - returns the angle in radians between the two vectors. If only one is given, angle is between the vector and the horizontal East direction. If a third vector is given, it is the normal used to determine the sign of the angle.
Definition at line 81 of file fcvec.py.
Referenced by Sketcher::Sketch::addAngleConstraint(), Build_Rotate_Quaternion(), SketcherGui::ViewProviderSketch::draw(), Base::VectorPy::getAngle(), Base::RotationPy::getAngle(), Base::RotationPy::getAxis(), Part::FeatureReference::getLocation(), Part::Feature::getLocation(), KDL::Rotation::GetRotAngle(), FCSphereSheetProjector::getRotation(), makeCone(), makeCylinder(), makeHelix(), makeRevolution(), makeTorus(), DrawSketchHandlerCircle::mouseMove(), DrawSketchHandlerArc::mouseMove(), SketcherGui::ViewProviderSketch::moveConstraint(), MeshPart::MeshAlgos::offsetSpecial2(), Mesh::MeshObject::offsetSpecial2(), Gui::Dialog::DemoMode::on_angleSlider_valueChanged(), Base::RotationPy::PyInit(), Base::PlacementPy::PyInit(), DrawSketchHandlerFillet::releaseButton(), KDL::Rot(), Part::TopoShapePy::rotate(), Part::GeometryPy::rotate(), MeshGui::DlgSettingsMeshView::saveSettings(), SketcherGui::DrawSketchHandler::seekAutoConstraint(), Base::Rotation::setValue(), Base::Rotation::slerp(), MeshGui::ViewProviderMesh::ViewProviderMesh(), and Part::TopoShapePy::writeInventor().
def draftlibs::fcvec::dist | ( | u, | ||
v | ||||
) |
Definition at line 75 of file fcvec.py.
Referenced by ANNkd_leaf::ann_FR_search(), ANNbd_shrink::ann_FR_search(), ANNkd_leaf::ann_pri_search(), ANNbd_shrink::ann_pri_search(), ANNkd_leaf::ann_search(), ANNbd_shrink::ann_search(), annBoxDistance(), annDist(), SpringbackCorrection::CalcCurv(), Base::VectorPy::distanceToLine(), Base::VectorPy::distanceToPlane(), GCS::ConstraintP2LDistance::error(), GCS::ConstraintP2PDistance::error(), Mesh::SegmentByMesh::execute(), getBoundary_Conditions(), SandboxGui::SoWidgetShape::getQuad(), InspectionGui::ViewProviderInspection::inspectDistance(), MeshCore::MeshGeomFacet::IsPointOfSphere(), Part::TopoShapeWirePy::makeOffset(), Part::TopoShapeFacePy::makeOffset(), GCS::ConstraintP2PDistance::maxStep(), MeshCore::MeshNearestIndexToPlane< T >::operator()(), KDL::Path_Circle::Path_Circle(), KDL::Path_Line::Path_Line(), Part::PlanePy::PyInit(), Part::CylinderPy::PyInit(), Part::ConePy::PyInit(), Part::CirclePy::PyInit(), Part::TopoShapePy::slices(), SketcherGui::TaskSketcherConstrains::slotConstraintsChanged(), and wrap_SoQtViewer_getFocalDistance().
def draftlibs::fcvec::find | ( | vector, | ||
vlist | ||||
) |
find(vector,vlist): finds a vector in a list of vectors. returns the index of the matching vector, or None if none is found.
Definition at line 150 of file fcvec.py.
Referenced by StdCmdToggleVisibility::activated(), StdCmdOpen::activated(), Gui::Translator::activateLanguage(), ReadDyna::Convert(), Gui::Document::detachView(), MeshCore::MeshPointArray::Get(), MeshCore::MeshEvalTopology::GetFacetManifolds(), Base::Writer::getUniqueFileName(), Approximate::ParameterBoundary(), Approximate::ParameterInnerPoints(), GCS::System::removeConstraint(), Base::SequencerP::removeInstance(), Approximate::ReorderNeighbourList(), Approximate::Reparam(), and PartGui::DlgFilletEdges::setupFillet().
def draftlibs::fcvec::isColinear | ( | vlist | ) |
def draftlibs::fcvec::isNull | ( | vector | ) |
def draftlibs::fcvec::neg | ( | u | ) |
Definition at line 51 of file fcvec.py.
Referenced by Base::Rotation::slerp().
def draftlibs::fcvec::rotate | ( | u, | ||
angle, | ||||
axis = Vector(0,0 | ||||
) |
def draftlibs::fcvec::tup | ( | u, | ||
array = False | ||||
) |
Definition at line 43 of file fcvec.py.
Referenced by App::PropertyLinkSubList::getPyObject(), App::PropertyLinkSub::getPyObject(), Part::TopoShapePy::makeShapeFromMesh(), App::PropertyLinkSubList::setPyObject(), and App::PropertyLinkSub::setPyObject().
def draftlibs::fcvec::typecheck | ( | args_and_types, | ||
name = "?" | ||||
) |
string draftlibs::fcvec::__author__ = "Yorik van Havre, Werner Mayer, Martin Burbaum, Ken Cline" |
string draftlibs::fcvec::__title__ = "FreeCAD Draft Workbench - Vector library" |
list draftlibs::fcvec::__url__ = ["http://free-cad.sourceforge.net"] |
tuple draftlibs::fcvec::params = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft") |