Simplygon C++ API  8.3.35800.0
SimplygonSDK::IRepairSettings Class Referenceabstract

#include <SimplygonSDK.h>

Inheritance diagram for SimplygonSDK::IRepairSettings:
SimplygonSDK::ISettingsObject SimplygonSDK::IObject

Public Member Functions

virtual const char * GetClass ()
 
virtual unsigned int GetProgressivePasses ()=0
 
virtual real GetTjuncDist ()=0
 
virtual bool GetUseTJunctionRemover ()=0
 
virtual bool GetUseWelding ()=0
 
virtual real GetWeldDist ()=0
 
virtual bool GetWeldOnlyBetweenSceneNodes ()=0
 
virtual bool GetWeldOnlyBorderVertices ()=0
 
virtual SGDEPRECATED bool GetWeldOnlyObjectBoundary ()=0
 
virtual bool GetWeldOnlyWithinMaterial ()=0
 
virtual bool GetWeldOnlyWithinSceneNode ()=0
 
virtual bool IsA (const char *type) const
 
virtual void SetProgressivePasses (unsigned int value)=0
 
virtual void SetTjuncDist (real value)=0
 
virtual void SetUseTJunctionRemover (bool value)=0
 
virtual void SetUseWelding (bool value)=0
 
virtual void SetWeldDist (real value)=0
 
virtual void SetWeldOnlyBetweenSceneNodes (bool value)=0
 
virtual void SetWeldOnlyBorderVertices (bool value)=0
 
virtual SGDEPRECATED void SetWeldOnlyObjectBoundary (bool weldOnlyObjectBoundary)=0
 
virtual void SetWeldOnlyWithinMaterial (bool value)=0
 
virtual void SetWeldOnlyWithinSceneNode (bool value)=0
 
- Public Member Functions inherited from SimplygonSDK::ISettingsObject
virtual rstring GetErrorString ()=0
 
virtual bool ValidateSettings ()=0
 
- Public Member Functions inherited from SimplygonSDK::IObject
virtual rid AddObserver (robserver *Observer, rid EventId)=0
 
virtual void AddRef ()=0
 
virtual rstring GetName ()=0
 
virtual void * GetUserComponentArea (rid userid)=0
 
virtual void PrintInfo ()=0
 
virtual void Release ()=0
 
virtual void RemoveObserver (rid ObserverId)=0
 
virtual void SetName (const char *Name)=0
 

Static Public Member Functions

static bool IsClassA (const char *type)
 
static IRepairSettingsSafeCast (IObject *ptr)
 
- Static Public Member Functions inherited from SimplygonSDK::ISettingsObject
static bool IsClassA (const char *type)
 
static ISettingsObjectSafeCast (IObject *ptr)
 
- Static Public Member Functions inherited from SimplygonSDK::IObject
static bool IsClassA (const char *type)
 
static IObjectSafeCast (IObject *ptr)
 

Detailed Description

Settings for handling unconnected parts and unwanted gaps in the geometry. It consists of two parts, Welding and T-junction removal. Welding merges vertices that are closer than a set distance from each other. T-junction removal finds open edges that lies within a set distance from other open edges, but without matching vertices. It then splits those triangles into smaller, matching triangles and fuses them together.

Definition at line 10717 of file SimplygonSDK.h.

Member Function Documentation

◆ GetClass()

virtual const char* SimplygonSDK::IRepairSettings::GetClass ( )
virtual

GetClass returns the name of the class of the object.

Returns
the name of the actual class of the object, as a const char string

Reimplemented from SimplygonSDK::ISettingsObject.

◆ GetProgressivePasses()

virtual unsigned int SimplygonSDK::IRepairSettings::GetProgressivePasses ( )
pure virtual

Get the number of ProgressivePasses. Minimum is 1, but higher numbers give a better quality, at the expense of longer running time.

Returns
the current value of ProgressivePasses

◆ GetTjuncDist()

virtual real SimplygonSDK::IRepairSettings::GetTjuncDist ( )
pure virtual

Get the T-Junction distance, below which, the T-Junctions will be welded

Returns
the current value of TjuncDist

◆ GetUseTJunctionRemover()

virtual bool SimplygonSDK::IRepairSettings::GetUseTJunctionRemover ( )
pure virtual

Get the UseTJunctionRemover flag, if set, t-junctions will be removed. If enabled, it also requires UseWelding to be on.

Returns
the current value of UseTJunctionRemover

◆ GetUseWelding()

virtual bool SimplygonSDK::IRepairSettings::GetUseWelding ( )
pure virtual

Get the UseWelding flag. If set, vertices within each others welding distance will be welded together.

Returns
the current value of UseWelding

◆ GetWeldDist()

virtual real SimplygonSDK::IRepairSettings::GetWeldDist ( )
pure virtual

Get the Welding distance, below which, the vertices will be welded

Returns
the current value of WeldDist

◆ GetWeldOnlyBetweenSceneNodes()

virtual bool SimplygonSDK::IRepairSettings::GetWeldOnlyBetweenSceneNodes ( )
pure virtual

Get the WeldOnlyBetweenSceneNodes flag. If set, only vertices that belong to different scene nodes are considered for the welding. Affects both welder and t-junction remover.

Returns
the current value of WeldOnlyBetweenSceneNode

◆ GetWeldOnlyBorderVertices()

virtual bool SimplygonSDK::IRepairSettings::GetWeldOnlyBorderVertices ( )
pure virtual

Get the WeldOnlyBorderVertices flag, if set, only vertices that are on the border (as reported by the VertexBorder boolean field) are considered for the welding

Returns
the current value of WeldOnlyBorderVertices

◆ GetWeldOnlyObjectBoundary()

virtual SGDEPRECATED bool SimplygonSDK::IRepairSettings::GetWeldOnlyObjectBoundary ( )
pure virtual
Deprecated:
Method is marked as deprecated and will be removed in future version. Use GetWeldOnlyBetweenSceneNodes() instead. Use GetWeldOnlyBetweenSceneNodes instead

◆ GetWeldOnlyWithinMaterial()

virtual bool SimplygonSDK::IRepairSettings::GetWeldOnlyWithinMaterial ( )
pure virtual

Get the WeldOnlyWithinMaterial flag. If set, only vertices that are within the same material are welded. Vertices on material borders are locked.

Returns
the current value of WeldOnlyWithinMaterial

◆ GetWeldOnlyWithinSceneNode()

virtual bool SimplygonSDK::IRepairSettings::GetWeldOnlyWithinSceneNode ( )
pure virtual

Get the WeldOnlyWithinSceneNode flag. If set, only vertices that are within the same scene node are welded.

Returns
the current value of WeldOnlyWithinSceneNode

◆ IsA()

virtual bool SimplygonSDK::IRepairSettings::IsA ( const char *  type) const
virtual

The IsA function returns true if the object is a or is a descendant of the class named as the type parameter

Parameters
typeis the name of the class to check if the object is, or is a descendant of
Returns
true if the object is of the specified class, false if not

Reimplemented from SimplygonSDK::ISettingsObject.

◆ IsClassA()

static bool SimplygonSDK::IRepairSettings::IsClassA ( const char *  type)
inlinestatic

The IsClassA function returns true if IRepairSettings is a or is a descendant of the class named as the type parameter

Parameters
typeis the name of the class to check if the class is, or is a descendant of
Returns
true if the class is of the specified class, false if not

Definition at line 10738 of file SimplygonSDK.h.

◆ SafeCast()

static IRepairSettings* SimplygonSDK::IRepairSettings::SafeCast ( IObject ptr)
inlinestatic

SafeCast makes sure the pointer is of a class that can be cast into a IRepairSettings pointer, and if this is possible, returns the cast pointer.

Parameters
ptris the pointer to be cast into a IRepairSettings pointer
Returns
a pointer to the IRepairSettings object, if the cast can be made, and a NULL pointer otherwise

Definition at line 10751 of file SimplygonSDK.h.

◆ SetProgressivePasses()

virtual void SimplygonSDK::IRepairSettings::SetProgressivePasses ( unsigned int  value)
pure virtual

Set the number of ProgressivePasses. Minimum is 1, but higher numbers give a better quality, at the expense of longer running time.

Parameters
valueis the integer to which ProgressivePasses will be set Value cannot be less than 1.

◆ SetTjuncDist()

virtual void SimplygonSDK::IRepairSettings::SetTjuncDist ( real  value)
pure virtual

Set the T-Junction distance, below which, the T-Junctions will be welded

Parameters
valueis the value to which TjuncDist will be set Value cannot be less than 0.

◆ SetUseTJunctionRemover()

virtual void SimplygonSDK::IRepairSettings::SetUseTJunctionRemover ( bool  value)
pure virtual

Set the UseTJunctionRemover flag, if set, t-junctions will be removed. If enabled, it also requires UseWelding to be on.

Parameters
valueis the bool to which UseTJunctionRemover will be set

◆ SetUseWelding()

virtual void SimplygonSDK::IRepairSettings::SetUseWelding ( bool  value)
pure virtual

Set the UseWelding flag. If set, vertices within each others welding distance will be welded together.

Parameters
valueis the bool to which UseWelding will be set

◆ SetWeldDist()

virtual void SimplygonSDK::IRepairSettings::SetWeldDist ( real  value)
pure virtual

Set the Welding distance, below which, the vertices will be welded

Parameters
valueis the value to which WeldDist will be set Value cannot be less than 0.

◆ SetWeldOnlyBetweenSceneNodes()

virtual void SimplygonSDK::IRepairSettings::SetWeldOnlyBetweenSceneNodes ( bool  value)
pure virtual

Set the WeldOnlyBetweenSceneNodes flag. If set, only vertices that belong to different scene nodes are considered for the welding. Affects both welder and t-junction remover.

Parameters
valueis the bool to which WeldOnlyBetweenSceneNode will be set

◆ SetWeldOnlyBorderVertices()

virtual void SimplygonSDK::IRepairSettings::SetWeldOnlyBorderVertices ( bool  value)
pure virtual

Set the WeldOnlyBorderVertices flag, if set, only vertices that are on the border (as reported by the VertexBorder boolean field) are considered for the welding

Parameters
valueis the bool to which WeldOnlyBorderVertices will be set

◆ SetWeldOnlyObjectBoundary()

virtual SGDEPRECATED void SimplygonSDK::IRepairSettings::SetWeldOnlyObjectBoundary ( bool  weldOnlyObjectBoundary)
pure virtual
Deprecated:
Method is marked as deprecated and will be removed in future version. Use SetWeldOnlyBetweenSceneNodes() instead. Use SetWeldOnlyBetweenSceneNodes instead
Parameters
weldOnlyObjectBoundaryis the bool to which weldOnlyObjectBoundary will be set

◆ SetWeldOnlyWithinMaterial()

virtual void SimplygonSDK::IRepairSettings::SetWeldOnlyWithinMaterial ( bool  value)
pure virtual

Set the WeldOnlyWithinMaterial flag, If set, only vertices that are within the same material are welded. Vertices on material borders are locked.

Parameters
valueis the bool to which WeldOnlyWithinMaterial will be set

◆ SetWeldOnlyWithinSceneNode()

virtual void SimplygonSDK::IRepairSettings::SetWeldOnlyWithinSceneNode ( bool  value)
pure virtual

Set the WeldOnlyWithinSceneNode flag, If set, only vertices that are within the same scene node are welded.

Parameters
valueis the bool to which WeldOnlyWithinSceneNode will be set

The documentation for this class was generated from the following file: