Placement API/es: Difference between revisions
Renatorivo (talk | contribs) (Created page with "Una ubicación en FreeCAD es un objeto definiendo una posición y rotación. The Placement concept is explained in detail here: Placement.") |
No edit summary |
||
(9 intermediate revisions by 2 users 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. |
||
The Placement concept is explained in detail here: [[Placement/es|Placement]]. |
The Placement concept is explained in detail here: [[Placement/es|Placement]]. |
||
Una ubicación se puede añadir a un objeto de FreeCAD, para orientarlo/posicionarlo en el documento. Por ejemplo: |
|||
Example of setting a document object's Placement: |
|||
{{Code|code= |
|||
myObj = FreeCAD.ActiveDocument.ActiveObject |
|||
myObj = FreeCAD.ActiveDocument.ActiveObject |
|||
pl = FreeCAD.Placement() |
|||
pl.move(FreeCAD.Vector(2,0,0)) |
|||
myObj.Placement = pl |
|||
}} |
|||
⚫ | |||
⚫ | |||
{{APIProperty/es|Rotation|Una cuaterna representando la rotación de la Ubicación.}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
{{APIFunction/es|multiply|Placement|Multiplica esta Ubicación con otra|La Ubicación resultante.}} |
|||
{{APIFunction/es|toMatrix| | |Una matriz representando la transformación de la Ubicación.}} |
|||
{{Userdocnavi{{#translation:}}}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
[[Category:Poweruser Documentation{{#translation:}}]] |
|||
{{APIProperty|Rotation|a quaternion representing the Placement's rotation.}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
{{APIFunction|multiply|Placement|multiplies this placement with another one|the resulting placement.}} |
|||
{{APIFunction|toMatrix| | |a matrix representing the Placement's transformation.}} |
|||
⚫ | |||
{{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