App GeoFeature

Introduction


An App GeoFeature object, or formally an, is the base class of most objects that will display geometrical elements in the 3D view.



How to use
The App GeoFeature is an internal class, so it cannot be created from the graphical interface. It is not meant to be used directly. It is sub-classed by other classes that are intended to handle shapes in the 3D view.

One of the most important GeoFeatures is the Part Feature class, which is the parent object of most 2D and 3D geometrical objects that can be displayed in the 3D view.

Properties
An App GeoFeature ( class) is derived from the basic App DocumentObject ( class), therefore it shares all the latter's properties.

In addition to the properties described in App DocumentObject, the GeoFeature has the property, which allows it to control the position of the shape it contains in the 3D view.


 * : the position of the object in the 3D view. The placement is defined by a point (vector), and a  (axis and angle). See Placement.
 * : the angle of rotation around the.
 * : the unit vector that defines the axis of rotation for the placement. Each value is between 0 and 1. If any value is above 1, the vector is normalized so that the magnitude of the vector is 1.
 * : the 3D coordinates of the base point of the placement.

Scripting
FreeCAD Scripting Basics, and scripted objects.

See Part Feature for the general information on adding objects to the program

A GeoFeature is created with the method of the document. If you would like to create a 2D or 3D object, it is usually better to create one of the sub-classes, for example,, , or.

This basic doesn't have a default view provider, so no icon will be displayed on the tree view. For this, the recommendation is to use the class.

For example, the Arch BuildingPart element is an object with a custom icon.