Skip to content

Commit fd7d32d

Browse files
committed
structural_model and rmeesh from Vease-Modeling-Back
1 parent 11b2e1a commit fd7d32d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/opengeodeweb_back/geode_objects/geode_cross_section.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,6 @@ def save_light_viewable(self, filename_without_extension: str) -> str:
7676

7777
def component_name(self, id: og.uuid) -> str | None:
7878
return self.cross_section.cross_section_component(id).name()
79+
80+
def component(self, id: og.uuid) -> og.Component2D:
81+
return self.cross_section.cross_section_component(id)

src/opengeodeweb_back/geode_objects/geode_structural_model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,6 @@ def save_light_viewable(self, filename_without_extension: str) -> str:
7878

7979
def component_name(self, id: og.uuid) -> str | None:
8080
return self.structural_model.structural_model_component(id).name()
81+
82+
def component(self, id: og.uuid) -> og.Component3D:
83+
return self.structural_model.structural_model_component(id)

0 commit comments

Comments
 (0)