Placement API/de

From FreeCAD Documentation
Jump to navigation Jump to search
This page is a translated version of the page Placement API and the translation is 0% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎română • ‎čeština
(November 2018) Diese Information kann unvollständig und veraltet sein. Für die letzte API siehe die (engl.) autogenerierte API-Dokumentation.

In FreeCAD, Placement defines an object's position and rotation. The Placement concept is explained in detail here: Placement.

Example of setting a document object's Placement:

myObj = FreeCAD.ActiveDocument.ActiveObject
pl = FreeCAD.Placement()
myObj.Placement = pl
Class.png Placement( ) or (Placement) or (Matrix) or (Base, Rotation) or (Base,Rotation,Center) or (Base,Axis,Angle)

Description: Constructs a placement, empty or with the given arguments, or as a copy of the given placement.

Property.png Base

Returns: a vector representing the Placement's position.

Property.png Rotation

Returns: a quaternion representing the Placement's rotation.

Method.png inverse( )

Description: computes the inverse placement

Returns: a placement.

Method.png move(Vector)

Description: moves the Placement along the given vector

Returns: nothing

Method.png multVec(Vector)

Description: applies the Placement to the given vector

Returns: the resulting vector.

Method.png multiply(Placement)

Description: multiplies this placement with another one

Returns: the resulting placement.

Method.png toMatrix( )


Returns: a matrix representing the Placement's transformation.