mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
ifcopenshell.geom.create_shape - expose geometry_library argument
This commit is contained in:
@@ -352,7 +352,10 @@ class tree(ifcopenshell_wrapper.tree):
|
|||||||
|
|
||||||
|
|
||||||
def create_shape(
|
def create_shape(
|
||||||
settings: settings, inst: entity_instance, repr: Optional[entity_instance] = None
|
settings: settings,
|
||||||
|
inst: entity_instance,
|
||||||
|
repr: Optional[entity_instance] = None,
|
||||||
|
geometry_library: GEOMETRY_LIBRARY = "opencascade",
|
||||||
) -> Union[ShapeType, ShapeElementType, ifcopenshell_wrapper.Transformation]:
|
) -> Union[ShapeType, ShapeElementType, ifcopenshell_wrapper.Transformation]:
|
||||||
"""
|
"""
|
||||||
Return a geometric representation from STEP-based IFCREPRESENTATIONSHAPE
|
Return a geometric representation from STEP-based IFCREPRESENTATIONSHAPE
|
||||||
@@ -394,7 +397,9 @@ def create_shape(
|
|||||||
"""
|
"""
|
||||||
return wrap_shape_creation(
|
return wrap_shape_creation(
|
||||||
settings,
|
settings,
|
||||||
ifcopenshell_wrapper.create_shape(settings, inst.wrapped_data, repr.wrapped_data if repr is not None else None),
|
ifcopenshell_wrapper.create_shape(
|
||||||
|
settings, inst.wrapped_data, repr.wrapped_data if repr is not None else None, geometry_library
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user