Shape: Difference between revisions

From FreeCAD Documentation
(In FreeCAD the word "Shape" is normally used to refer to a Part TopoShape (Part::TopoShape class), a type of object that gives an element its 3D geometrical representation (cube, pyramid, sphere, cylinder, etc.).)
 
(Remove double quotes except on the first "Shape". Essentially, every object derived from a Part Feature (Part::Feature class) is expected to hold and manipulate a Shape.)
Line 6: Line 6:
In FreeCAD the word "[[Shape|Shape]]" is normally used to refer to a [[Part_TopoShape|Part TopoShape]] ({{incode|Part::TopoShape}} class), a type of object that gives an element its 3D geometrical representation (cube, pyramid, sphere, cylinder, etc.).
In FreeCAD the word "[[Shape|Shape]]" is normally used to refer to a [[Part_TopoShape|Part TopoShape]] ({{incode|Part::TopoShape}} class), a type of object that gives an element its 3D geometrical representation (cube, pyramid, sphere, cylinder, etc.).


Essentially all objects that are displayed in the [[3D view|3D view]] have a [[Part_TopoShape|TopoShape]], with the exception of [[Mesh|meshes]], which have a [[Mesh MeshObject|MeshObject]].
Essentially all objects that are displayed in the [[3D view|3D view]] have a [[Part_TopoShape|TopoShape]], with the exception of "[[Mesh|Meshes]]", which have a [[Mesh MeshObject|MeshObject]].


See [[Part_TopoShape|Part TopoShape]] for more information about this type of object.
See [[Part_TopoShape|Part TopoShape]] for more information about this type of object.
Line 12: Line 12:
== How to use ==
== How to use ==


"Shapes" are normally created by internal functions of the [[Part_Workbench|Part Workbench]], and are ultimately defined by the OpenCASCADE Technology kernel (OCCT).
Shapes are normally created by internal functions of the [[Part_Workbench|Part Workbench]], and are ultimately defined by the OpenCASCADE Technology kernel (OCCT).


Once a Shape is created, it can be used and modified by all [[Workbenches|workbenches]] by creating [[scripted objects|scripted objects]] around that Shape.
Once a Shape is created, it can be used and modified by all [[Workbenches|workbenches]] by creating [[scripted objects|scripted objects]] around that Shape.


Essentially, every object derived from a [[Part_Feature|Part Feature]] ({{incode|Part::Feature}} class) will have access to a "Shape".
Essentially, every object derived from a [[Part_Feature|Part Feature]] ({{incode|Part::Feature}} class) is expected to hold and manipulate a Shape.


{{Part Tools navi}}
{{Part Tools navi}}

Revision as of 08:20, 12 January 2020

Introduction

In FreeCAD the word "Shape" is normally used to refer to a Part TopoShape (Part::TopoShape class), a type of object that gives an element its 3D geometrical representation (cube, pyramid, sphere, cylinder, etc.).

Essentially all objects that are displayed in the 3D view have a TopoShape, with the exception of "Meshes", which have a MeshObject.

See Part TopoShape for more information about this type of object.

How to use

Shapes are normally created by internal functions of the Part Workbench, and are ultimately defined by the OpenCASCADE Technology kernel (OCCT).

Once a Shape is created, it can be used and modified by all workbenches by creating scripted objects around that Shape.

Essentially, every object derived from a Part Feature (Part::Feature class) is expected to hold and manipulate a Shape.