Placement API/es: Difference between revisions
(Updating to match new version of source page) |
No edit summary |
||
(5 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
{{VeryImportantMessage|(October 2019) Do not edit this page. The information is incomplete and outdated. For the latest API, see the [https://www.freecadweb.org/api autogenerated API documentation], or generate the documentation yourself, see [[Source documentation|Source documentation]].}} |
|||
Una ubicación en FreeCAD es un objeto definiendo una posición y rotación. |
Una ubicación en FreeCAD es un objeto definiendo una posición y rotación. |
||
Line 11: | Line 14: | ||
}} |
}} |
||
⚫ | |||
⚫ | |||
{{APIProperty/es|Base|Un vector representando la posición de la Ubicación.}} |
{{APIProperty/es|Base|Un vector representando la posición de la Ubicación.}} |
||
{{APIProperty/es|Rotation|Una cuaterna representando la rotación de la Ubicación.}} |
{{APIProperty/es|Rotation|Una cuaterna representando la rotación de la Ubicación.}} |
||
Line 21: | Line 23: | ||
{{APIFunction/es|toMatrix| | |Una matriz representando la transformación de la Ubicación.}} |
{{APIFunction/es|toMatrix| | |Una matriz representando la transformación de la Ubicación.}} |
||
{{Userdocnavi{{#translation:}}}} |
|||
[[Category:API |
[[Category:API{{#translation:}}]] |
||
[[Category:Poweruser Documentation{{#translation:}}]] |
|||
{{clear}} |
{{clear}} |
||
⚫ |
Latest revision as of 21:15, 5 November 2021
(October 2019) Do not edit this page. The information is incomplete and outdated. For the latest API, see the autogenerated API documentation, or generate the documentation yourself, see Source documentation.
Una ubicación en FreeCAD es un objeto definiendo una posición y rotación.
The Placement concept is explained in detail here: Placement.
Una ubicación se puede añadir a un objeto de FreeCAD, para orientarlo/posicionarlo en el documento. Por ejemplo:
myObj = FreeCAD.ActiveDocument.ActiveObject
pl = FreeCAD.Placement()
pl.move(FreeCAD.Vector(2,0,0))
myObj.Placement = pl
Placement( ) o (Placement) o (Matrix) o (Base, Rotation) o (Base,Rotation,Center) o (Base,Axis,Angle)
Description: Construye una ubicación, vacía o con los argumentos dados, o como una copia de la ubicación dada.
Descripción: Multiplica esta Ubicación con otra
Devuelve: La Ubicación resultante.
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Assembly, BIM, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub