App GeoFeature/it

Introduzione


Un oggetto App GeoFeature, o formalmente un, è la classe base della maggior parte degli oggetti che visualizzano elementi geometrici nella vista 3D.



Utilizzo
The App GeoFeature is an internal object, so it cannot be created from the graphical interface. It is generally not meant to be used directly, rather it defines a bare-bones object that only has a basic Placement property to define its position in the 3D view.

One of the most important GeoFeatures is the Part Feature class, which is the parent of most objects with 2D and 3D topological shapes.

Proprietà
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 controls its position in the 3D view.

See Property for all property types that scripted objects can have.

These are the properties available in the property editor.

Data

 * : 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.
 * : the user editable name of this object, it is an arbitrary UTF8 string.

View

 * : if it is, the object will show the bounding box in the 3D view.
 * : it is empty by default.
 * : if it is, the object can be picked with the pointer in the 3D view. Otherwise, the object cannot be selected until this option is set to.
 * : a tuple of three values to define the color of the faces in the 3D view; by default it is, which is displayed as  on base 255, a light gray.
 * : if it is, the object appears in the tree view. Otherwise, it is set as invisible.
 * : a float from 0 to 100 that determines the level of transparency of the faces in the 3D view. A value of 100 indicates completely invisible faces; the faces are invisible but they can still be picked as long as is.
 * : if it is, the object appears in the 3D view; otherwise it is invisible. By default this property can be toggled on and off by pressing the bar in the keyboard.
 * : a float from 0 to 100 that determines the level of transparency of the faces in the 3D view. A value of 100 indicates completely invisible faces; the faces are invisible but they can still be picked as long as is.
 * : if it is, the object appears in the 3D view; otherwise it is invisible. By default this property can be toggled on and off by pressing the bar in the keyboard.

Hidden properties View

 * : a class associated with this view provider.
 * : a material associated with this object.

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 an object with 2D or 3D geometry, it may be better to create one of the sub-classes specialized for those shapes, for example, Part Feature or Part Part2DObject.

This basic doesn't have a default view provider, so no icon will be displayed on the tree view, and no  properties will be available.

Therefore, for Python scripting, the recommendation is to add the object.

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