Skip to content

Commit 1c95f6c

Browse files
committed
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
1 parent 0f03e41 commit 1c95f6c

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

src/bcf/bcf/v2/visinfo.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import uuid
22
import zipfile
3-
from functools import lru_cache
43
from typing import Any, Iterable, Optional
54

65
import numpy as np
@@ -206,7 +205,6 @@ def create_from_point_and_guids(
206205
)
207206

208207

209-
@lru_cache(maxsize=None)
210208
def build_viewpoint(element: entity_instance) -> mdl.VisualizationInfo:
211209
"""
212210
Return a BCF viewpoint of an IFC element.

src/bcf/bcf/v3/visinfo.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import uuid
22
import zipfile
3-
from functools import lru_cache
43
from typing import Any, Iterable, Optional
54

65
import numpy as np
@@ -206,7 +205,6 @@ def create_from_point_and_guids(
206205
)
207206

208207

209-
@lru_cache(maxsize=None)
210208
def build_viewpoint(element: entity_instance) -> mdl.VisualizationInfo:
211209
"""
212210
Return a BCF viewpoint of an IFC element.

0 commit comments

Comments
 (0)