Part TopoShape

From FreeCAD Documentation
Revision as of 21:58, 16 December 2019 by Renatorivo (talk | contribs) (Created page with "Part TopoShape")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 TopoShape is an attribute that is assigned to some App DocumentObjects. In particular, the basic object that handles these types of shapes is the Part Feature (Part::Feature class).