OCC.StlAPI module¶
-
class
StlAPI_Writer
(*args)¶ Bases:
object
- Creates a writer object with default parameters: ASCIIMode, RelativeMode, SetCoefficent, SetDeflection. These parameters may be modified.
Return type: None -
GetASCIIMode
()¶ StlAPI_Writer_GetASCIIMode(StlAPI_Writer self) -> Standard_Boolean
-
GetRelativeMode
()¶ StlAPI_Writer_GetRelativeMode(StlAPI_Writer self) -> Standard_Boolean
-
SetASCIIMode
()¶ StlAPI_Writer_SetASCIIMode(StlAPI_Writer self, Standard_Boolean value)
-
SetCoefficient
()¶ - Sets the coeffiecient for computation of deflection through relative size of shape. Default value = 0.001
Parameters: aCoefficient (float) – Return type: None
-
SetDeflection
()¶ - Sets the deflection of the meshing algorithm. Deflection is used, only if relative mode is false
Parameters: aDeflection (float) – Return type: None
-
SetRelativeMode
()¶ StlAPI_Writer_SetRelativeMode(StlAPI_Writer self, Standard_Boolean value)
-
Write
()¶ - Converts a given shape to STL format and writes it to file with a given filename.
Parameters: - aShape (TopoDS_Shape &) –
- aFileName (char *) –
- InParallel (bool) – default value is Standard_False
Return type:
-
thisown
¶ The membership flag
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases
-
class
stlapi
¶ Bases:
object
-
static
Read
(*args)¶ - Create a shape from a STL format.
Parameters: - aShape (TopoDS_Shape &) –
- aFile (char *) –
Return type: void
-
static
Write
(*args)¶ - Convert and write shape to STL format. file is written in binary if aAsciiMode is False otherwise it is written in Ascii (by default)
Parameters: - aShape (TopoDS_Shape &) –
- aFile (char *) –
- aAsciiMode (bool) – default value is Standard_True
Return type: void
-
thisown
¶ The membership flag
-
static
-
stlapi_Read
(*args)¶ - Create a shape from a STL format.
Parameters: - aShape (TopoDS_Shape &) –
- aFile (char *) –
Return type: void