Part TopoShape

From FreeCAD Documentation
Revision as of 22:04, 18 December 2019 by Renatorivo (talk | contribs) (Marked this version for translation)

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: