Base API/it: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 4: Line 4:


{{APIClass|BoundBox|[Xmin,Ymin,Zmin,Xmax,Ymax,Zmax] ) or ( Tuple, Tuple ) or ( Vector, Vector|Creates a bounding box. A bounding box is an orthographic cube which is a way to describe outer boundaries. You get a bounding box from a lot of 3D types. It is often used to check if a 3D entity lies in the range of another object. Checking for bounding interference first can save a lot of computing time!}}
{{APIClass|BoundBox|[Xmin,Ymin,Zmin,Xmax,Ymax,Zmax] ) or ( Tuple, Tuple ) or ( Vector, Vector|Creates a bounding box. A bounding box is an orthographic cube which is a way to describe outer boundaries. You get a bounding box from a lot of 3D types. It is often used to check if a 3D entity lies in the range of another object. Checking for bounding interference first can save a lot of computing time!}}

{{APIClass|Matrix| |Creates a 4x4 [[Matrix_API|Matrix]], that can be used to apply transformations to objects.}}
{{APIClass|Matrix| |Creates a 4x4 [[Matrix_API|Matrix]], that can be used to apply transformations to objects.}}

{{APIClass|Vector|) or ( x,y,z|Creates a FreeCAD 3D [[Vector_API|Vector]], representing a 3D point or a direction.}}
{{APIClass|Vector|) or ( x,y,z|Creates a FreeCAD 3D [[Vector_API|Vector]], representing a 3D point or a direction.}}

{{APIClass|Placement| |Creates a [[Placement_API|Placement]].}}
{{APIClass|Placement| |Creates a [[Placement_API|Placement]].}}



Revision as of 22:53, 15 November 2014

The Base module is contained inside the FreeCAD module and contains constructors for different types of objects heavily used in FreeCAD.


BoundBox([Xmin,Ymin,Zmin,Xmax,Ymax,Zmax] ) or ( Tuple, Tuple ) or ( Vector, Vector)

Description: Creates a bounding box. A bounding box is an orthographic cube which is a way to describe outer boundaries. You get a bounding box from a lot of 3D types. It is often used to check if a 3D entity lies in the range of another object. Checking for bounding interference first can save a lot of computing time!

Matrix( )

Description: Creates a 4x4 Matrix, that can be used to apply transformations to objects.

Vector() or ( x,y,z)

Description: Creates a FreeCAD 3D Vector, representing a 3D point or a direction.

Placement( )

Description: Creates a Placement.