CleanupShapesSettings

Cleanup shapes settings.

@example:
# The settings for ce.cleanupShapes, specifying the types of cleanup to occur
cleanSettings = CleanupShapesSettings()
cleanSettings.setMergeVertices(False)
cleanSettings.setRemoveColinearVertices(False)
cleanSettings.setNoCleanupOnDiscontinousTextures(False)
cleanSettings.setRemoveCoplanarEdges(True)
cleanSettings.setRemoveDoubleFaces(True)
cleanSettings.setIntersectEdges(False)
cleanSettings.setDistanceTolerance(3)
cleanSettings.setAngleTolerance(10)
shape = ce.getObjectsFrom(ce.scene, ce.withName("'newShape'"))
ce.cleanupShapes(shape, cleanSettings)

 

Methods defined here:

getAngleTolerance

getAngleTolerance(self):

Gets AngleTolerance field. The maximal angle between two edges that are merged.

@return: Value of AngleTolerance field.  [float]

getConformNormals

getConformNormals(self):

Gets ConformNormals field.

@return: Value of ConformNormals field.  [True/False]

getDistanceTolerance

getDistanceTolerance(self):

Gets DistanceTolerance field. The maximal distance between two nodes that are merged.

@return: Value of DistanceTolerance field.  [float]

getIntersectEdges

getIntersectEdges(self):

Gets IntersectEdges field.

@return: Value of IntersectEdges field.  [True/False]

getMergeVertices

getMergeVertices(self):

Gets MergeVertices field.

@return: Value of MergeVertices field.  [True/False]

getNoCleanupOnDiscontinousTextures

getNoCleanupOnDiscontinousTextures(self):

Gets NoCleanupOnDiscontinousTextures field.

@return: Value of NoCleanupOnDiscontinousTextures field.  [True/False]

getRemoveColinearVertices

getRemoveColinearVertices(self):

Gets RemoveColinearVertices field.

@return: Value of RemoveColinearVertices field.  [True/False]

getRemoveCoplanarEdges

getRemoveCoplanarEdges(self):

Gets RemoveCoplanarEdges field.

@return: Value of RemoveCoplanarEdges field.  [True/False]

getRemoveDoubleFaces

getRemoveDoubleFaces(self):

Gets RemoveDoubleFaces field.

@return: Value of RemoveDoubleFaces field.  [True/False]

getRemoveZeroFaces

getRemoveZeroFaces(self):

Gets RemoveZeroFaces field.

@return: Value of RemoveZeroFaces field.  [True/False]

getSplitCoplanarPolygons

getSplitCoplanarPolygons(self):

Gets SplitCoplanarPolygons field.

@return: Value of SplitCoplanarPolygons field.  [True/False]

getSplitSelfintersectingPolygons

getSplitSelfintersectingPolygons(self):

Gets SplitSelfintersectingPolygons field.

@return: Value of SplitSelfintersectingPolygons field.  [True/False]

setAngleTolerance

setAngleTolerance(self, floatValue):

Sets AngleTolerance field. The maximal angle between two edges that are merged.

@param floatValue: the new value. [float]

setConformNormals

setConformNormals(self, booleanValue):

Sets ConformNormals field.

@param booleanValue: the new value. [True/False]

setDistanceTolerance

setDistanceTolerance(self, floatValue):

Sets DistanceTolerance field. The maximal distance between two nodes that are merged.

@param floatValue: the new value. [float]

setIntersectEdges

setIntersectEdges(self, booleanValue):

Sets IntersectEdges field.

@param booleanValue: the new value. [True/False]

setMergeVertices

setMergeVertices(self, booleanValue):

Sets MergeVertices field.

@param booleanValue: the new value. [True/False]

setNoCleanupOnDiscontinousTextures

setNoCleanupOnDiscontinousTextures(self, booleanValue):

Sets NoCleanupOnDiscontinousTextures field.

@param booleanValue: the new value. [True/False]

setRemoveColinearVertices

setRemoveColinearVertices(self, booleanValue):

Sets RemoveColinearVertices field.

@param booleanValue: the new value. [True/False]

setRemoveCoplanarEdges

setRemoveCoplanarEdges(self, booleanValue):

Sets RemoveCoplanarEdges field.

@param booleanValue: the new value. [True/False]

setRemoveDoubleFaces

setRemoveDoubleFaces(self, booleanValue):

Sets RemoveDoubleFaces field.

@param booleanValue: the new value. [True/False]

setRemoveZeroFaces

setRemoveZeroFaces(self, booleanValue):

Sets RemoveZeroFaces field.

@param booleanValue: the new value. [True/False]

setSplitCoplanarPolygons

setSplitCoplanarPolygons(self, booleanValue):

Sets SplitCoplanarPolygons field.

@param booleanValue: the new value. [True/False]

setSplitSelfintersectingPolygons

setSplitSelfintersectingPolygons(self, booleanValue):

Sets SplitSelfintersectingPolygons field.

@param booleanValue: the new value. [True/False]