pCon.planner Plugin SDK  Version 8.8.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events
Public Member Functions | Properties | List of all members
X3g::Plugin::GeometryManager Class Reference

Geometry Manager. More...

Public Member Functions

GeComponentGetModelspaceGeometry (GeometryCollectFlags pFlags, View^ pView)
 Retrieves modelspace geometry. More...
 
GeComponentGetSeparatedModelspaceGeometry (GeometryCollectFlags pFlags, View^ pView, bool pOnlySelected)
 Retrieves modelspace geometry. More...
 
GeComponentGetGeometryOnLayers (IEnumerable< String^ >^pLayerNames, GeometryCollectFlags pFlags, View^ pView)
 Returns the geometries which are on the specified layers. More...
 
IList< DbEntity^ >^ InsertGeometry (GeComponent^ pComponent, bool pInteractive)
 Inserts geometry. More...
 
GeComponentGetGeometry (DbEntity^ pEntity, GeometryCollectFlags pFlags)
 Retrieves the geometry of an entity. More...
 
GeComponentGetGeometry (DbEntity^ pEntity)
 Retrieves the geometry of an entity. More...
 
IList< GeComponent^ >^ GetGeometrySeparated (IEnumerable< DbEntity^ >^pEntities, GeometryCollectFlags pFlags)
 Retrieves geometry for a collection of modelspace entities. More...
 
Exports
void Export3ds (String^ pFileName, Export3dsParams pParameters)
 Exports the modelspace to a 3ds file. More...
 
void ExportDae (String^ pFileName, ExportDaeParams pParameters)
 Exports the modelspace to a dae file. More...
 
void ExportSkp (String^ pFileName, ExportSkpParams pParameters)
 Exports the modelspace to a skp file. More...
 
void ExportFbx (String^ pFileName, ExportFbxParams pParameters)
 Exports the modelspace to fbx format. More...
 
void ExportObj (String^ pFileName, ExportObjParams pParameters)
 Exports the modelspace to obj format. More...
 
void ExportEgm (Stream^ pStream, ExportEgmParams pParameters)
 Export geometry in egm format. More...
 
void ExportOff (Stream^ pOffStream, Stream^ pVnmStream, ExportOffParams pParameters)
 Export geometry in off format. More...
 
GeComponentExport (ExportParams pParameters)
 Exports the modelspace. More...
 
IList< FbxFormatDescription >^ GetFbxFormats ()
 Retrieves a list of available formats supported by X3gExportFbx() More...
 

Properties

double DefaultEdgeSmoothness [get]
 Current default edge smoothness of the application. More...
 
double DefaultNormalSmoothness [get]
 Current default normal smoothness of the application. More...
 

Detailed Description

Geometry Manager.

Member Function Documentation

X3g::Plugin::GeComponent X3g::Plugin::GeometryManager::Export ( ExportParams  pParameters)

Exports the modelspace.

void X3g::Plugin::GeometryManager::Export3ds ( String pFileName,
Export3dsParams  pParameters 
)

Exports the modelspace to a 3ds file.

void X3g::Plugin::GeometryManager::ExportDae ( String pFileName,
ExportDaeParams  pParameters 
)

Exports the modelspace to a dae file.

void X3g::Plugin::GeometryManager::ExportEgm ( Stream^  pStream,
ExportEgmParams  pParameters 
)

Export geometry in egm format.

void X3g::Plugin::GeometryManager::ExportFbx ( String pFileName,
ExportFbxParams  pParameters 
)

Exports the modelspace to fbx format.

void X3g::Plugin::GeometryManager::ExportObj ( String pFileName,
ExportObjParams  pParameters 
)

Exports the modelspace to obj format.

void X3g::Plugin::GeometryManager::ExportOff ( Stream^  pOffStream,
Stream^  pVnmStream,
ExportOffParams  pParameters 
)

Export geometry in off format.

void X3g::Plugin::GeometryManager::ExportSkp ( String pFileName,
ExportSkpParams  pParameters 
)

Exports the modelspace to a skp file.

IList< X3g::Plugin::FbxFormatDescription > X3g::Plugin::GeometryManager::GetFbxFormats ( )

Retrieves a list of available formats supported by X3gExportFbx()

GeComponent X3g::Plugin::GeometryManager::GetGeometry ( DbEntity pEntity,
GeometryCollectFlags  pFlags 
)

Retrieves the geometry of an entity.

The entity must be a top level entity, i.e. the owning DbBlock must be the modelspace block.

GeComponent ^ X3g::Plugin::GeometryManager::GetGeometry ( DbEntity pEntity)

Retrieves the geometry of an entity.

The entity must be a top level entity, i.e. the owning DbBlock must be the modelspace block.

X3g::Plugin::GeComponent X3g::Plugin::GeometryManager::GetGeometryOnLayers ( IEnumerable< String^ >^  pLayerNames,
GeometryCollectFlags  pFlags,
View pView 
)

Returns the geometries which are on the specified layers.

If a view is given, the layer visibilities for this view will be used.

IList< GeComponent^ > X3g::Plugin::GeometryManager::GetGeometrySeparated ( IEnumerable< DbEntity^ >^  pEntities,
GeometryCollectFlags  pFlags 
)

Retrieves geometry for a collection of modelspace entities.

The entities must be top level, i.e. the owning block must be the modelspace block. Using this function is more efficient than calling GetGeometry() for each entity separately as identical components in the result are shared.

Returns
Returns list with a geometry component for each entity.
X3g::Plugin::GeComponent X3g::Plugin::GeometryManager::GetModelspaceGeometry ( GeometryCollectFlags  pFlags,
View pView 
)

Retrieves modelspace geometry.

If a view is given, the layer visibilities for this view will be used.

X3g::Plugin::GeComponent X3g::Plugin::GeometryManager::GetSeparatedModelspaceGeometry ( GeometryCollectFlags  pFlags,
View pView,
bool  pOnlySelected 
)

Retrieves modelspace geometry.

In contrast to GetModelspaceGeometry() this function delivers the geometry for each top level entity separately. If a view is given, the layer visibilities for this view will be used.

IList< DbEntity^ > X3g::Plugin::GeometryManager::InsertGeometry ( GeComponent pComponent,
bool  pInteractive 
)

Inserts geometry.

Each geometry is inserted into a component which can be passed to this function. The names of all components are unused. Inserted geometry of components is not shared between different calls to this function. This function returns a list of created modelspace entities.

Property Documentation

double X3g::Plugin::GeometryManager::DefaultEdgeSmoothness
get

Current default edge smoothness of the application.

Minimum angle between two triangles, for an edge to become permanently visible.

double X3g::Plugin::GeometryManager::DefaultNormalSmoothness
get

Current default normal smoothness of the application.

Maximum angle between reference normal and adjacent normal before it is ignored.