mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
Use gross shapes for guessing false origins to be faster
This commit is contained in:
@@ -593,9 +593,10 @@ class Loader(blenderbim.core.tool.Loader):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create_generic_shape(
|
def create_generic_shape(
|
||||||
cls, element: ifcopenshell.entity_instance
|
cls, element: ifcopenshell.entity_instance, is_gross: bool = False
|
||||||
) -> Union[ifcopenshell.geom.ShapeElementType, None]:
|
) -> Union[ifcopenshell.geom.ShapeElementType, None]:
|
||||||
for settings in cls.settings.context_settings:
|
context_settings = cls.settings.gross_context_settings if is_gross else cls.settings.context_settings
|
||||||
|
for settings in context_settings:
|
||||||
try:
|
try:
|
||||||
result = ifcopenshell.geom.create_shape(settings, element)
|
result = ifcopenshell.geom.create_shape(settings, element)
|
||||||
if result:
|
if result:
|
||||||
|
|||||||
Reference in New Issue
Block a user