Part TopoShape/ru

Введение
A Part TopoShape, or formally a, 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.

Another type of class is that of meshes; this class is not very parametric because it can't be redefined easily except by specifying individual vertices and triangular surfaces.





Usage
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 ( 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.
 * Any PartDesign Body and PartDesign Feature created with the PartDesign Workbench.
 * Any object derived from Part Part2DObject, like most objects created with the Draft Workbench.
 * Any sketch, that is, Sketcher SketchObject, created with the Sketcher Workbench.
 * Any object created by importing a STEP, BREP, and similar solid format files.

Scripting
FreeCAD Scripting Basics, and scripted objects.

All objects derived from will have a Part TopoShape, which is normally accessible from its  attribute.

A TopoShape has many attributes (variables) and methods that contain information about it, and which allow doing operations with it. These variables and methods can be tested in the Python console.

For a full list of attributes and methods, consult the source documentation, and the tool.

You can obtain a quick summary of all methods using Python's built-in function.