Part TopoShape: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
(Some of the most important objects with Part TopoShape are the following: Part, PartDesign_Body, Part_Part2DObject, Sketcher_SketchObject.)
Line 19: Line 19:


<!--T:7-->
<!--T:7-->
The TopoShape is an attribute that is assigned to some [[App_DocumentObject|App DocumentObjects]]. In particular, the basic object that handles these types of shapes is the [[Part_Feature|Part Feature]] ({{incode|Part::Feature}} class).
The Part TopoShape is an object that is assigned to some [[App_DocumentObject|App DocumentObjects]].

In particular, the basic object that handles these types of attributes is the [[Part_Feature|Part Feature]] ({{incode|Part::Feature}} class). All objects derived from this class will have access to a Part TopoShape.

Some of the most important objects with Part TopoShape are the following:
* Any primitive solid created with the [[Part_Workbench|Part Workbench]].
* Any [[PartDesign_Body|PartDesign Body]] and [[PartDesign_Feature|PartDesign Feature]] created with the [[PartDesign_Workbench|PartDesign Workbench]].
* Any object derived from [[Part_Part2DObject|Part Part2DObject]], like most objects created with the [[Draft_Workbench|Draft Workbench]].
* Any [[Sketch|sketch]], that is, [[Sketcher_SketchObject|Sketcher SketchObject]], created with the [[Sketcher_Workbench|Sketcher Workbench]].


<!--T:8-->
<!--T:8-->

Revision as of 19:25, 18 December 2019

Introduction

A Part TopoShape, or formally a Part::TopoShape, is a class that defines a parametric topological shape in the software. Objects in the document that show something in the 3D view normally have a TopoShape.

The topological shapes, as well as their methods, are defined by the OpenCASCADE Technology kernel (OCCT). FreeCAD uses these shapes, and builds App DocumentObjects around them.

Simplified diagram of the relationships between the core objects in the program. The Part::TopoShape class is embedded in the Part::Feature object and from there it is propagated to all objects that are derived from it.

How to use

The Part TopoShape is an object that is assigned to some App DocumentObjects.

In particular, the basic object that handles these types of attributes is the Part Feature (Part::Feature class). All objects derived from this class will have access to a Part TopoShape.

Some of the most important objects with Part TopoShape are the following: