BooleanModifier(Modifier)
base classes — bpy_struct, Modifier
- class bpy.types.BooleanModifier(Modifier)
Boolean operations modifier
- collection
Use mesh objects in this collection for Boolean operation
- Type:
- debug_options
Debugging options, only when started with ‘-d’ (default set())
- Type:
set[Literal[‘SEPARATE’, ‘NO_DISSOLVE’, ‘NO_CONNECT_REGIONS’]]
- double_threshold
Threshold for checking overlapping geometry (in [0, 1], default 1e-06)
- Type:
float
- material_mode
Method for setting materials on the new faces (default
'INDEX')INDEXIndex Based – Set the material on new faces based on the order of the material slot lists. If a material does not exist on the modifier object, the face will use the same material slot or the first if the object does not have enough slots..TRANSFERTransfer – Transfer materials from non-empty slots to the result mesh, adding new materials as necessary. For empty slots, fall back to using the same material index as the operand mesh..
- Type:
Literal[‘INDEX’, ‘TRANSFER’]
- operand_type
(default
'OBJECT')OBJECTObject – Use a mesh object as the operand for the Boolean operation.COLLECTIONCollection – Use a collection of mesh objects as the operand for the Boolean operation.
- Type:
Literal[‘OBJECT’, ‘COLLECTION’]
- operation
(default
'DIFFERENCE')INTERSECTIntersect – Keep the part of the mesh that is common between all operands.UNIONUnion – Combine meshes in an additive way.DIFFERENCEDifference – Combine meshes in a subtractive way.
- Type:
Literal[‘INTERSECT’, ‘UNION’, ‘DIFFERENCE’]
- solver
Method for calculating booleans (default
'EXACT')FLOATFloat – Simple solver with good performance, without support for overlapping geometry.EXACTExact – Slower solver with the best results for coplanar faces.MANIFOLDManifold – Fastest solver that works only on manifold meshes but gives better results.
- Type:
Literal[‘FLOAT’, ‘EXACT’, ‘MANIFOLD’]
- use_hole_tolerant
Better results when there are holes (slower) (default False)
- Type:
bool
- use_self
Allow self-intersection in operands (default False)
- Type:
bool
- classmethod bl_rna_get_subclass(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
default (
bpy.types.Struct| None) – The value to return when not found.
- Returns:
The RNA type or default when not found.
- Return type:
- classmethod bl_rna_get_subclass_py(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
default (type | None) – The value to return when not found.
- Returns:
The class or default when not found.
- Return type:
type