mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 19:27:10 +00:00
bcf - remove lru_cache in build_viewpoint #4857
disabling it as it currently won't allows users to create a different viewpoint for the same IFC element (in the same or other bcf file) and also entity position can change between `build_viewpoint` calls
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import uuid
|
import uuid
|
||||||
import zipfile
|
import zipfile
|
||||||
from functools import lru_cache
|
|
||||||
from typing import Any, Iterable, Optional
|
from typing import Any, Iterable, Optional
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
@@ -206,7 +205,6 @@ class VisualizationInfoHandler:
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@lru_cache(maxsize=None)
|
|
||||||
def build_viewpoint(element: entity_instance) -> mdl.VisualizationInfo:
|
def build_viewpoint(element: entity_instance) -> mdl.VisualizationInfo:
|
||||||
"""
|
"""
|
||||||
Return a BCF viewpoint of an IFC element.
|
Return a BCF viewpoint of an IFC element.
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import uuid
|
import uuid
|
||||||
import zipfile
|
import zipfile
|
||||||
from functools import lru_cache
|
|
||||||
from typing import Any, Iterable, Optional
|
from typing import Any, Iterable, Optional
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
@@ -206,7 +205,6 @@ class VisualizationInfoHandler:
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@lru_cache(maxsize=None)
|
|
||||||
def build_viewpoint(element: entity_instance) -> mdl.VisualizationInfo:
|
def build_viewpoint(element: entity_instance) -> mdl.VisualizationInfo:
|
||||||
"""
|
"""
|
||||||
Return a BCF viewpoint of an IFC element.
|
Return a BCF viewpoint of an IFC element.
|
||||||
|
|||||||
Reference in New Issue
Block a user