Skip to content

Commit 57afda8

Browse files
committed
pull from next
1 parent 231d145 commit 57afda8

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/opengeodeweb_back/geode_objects/geode_brep.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ def internals(self, id: og.uuid) -> list[og.ComponentID]:
8888
def items(self, id: og.uuid) -> list[og.ComponentID]:
8989
return self.brep.items(id)
9090

91-
def is_active(self, id: og.uuid) -> bool:
92-
return self.brep.brep_component(id).is_active()
93-
9491
def component_name(self, id: og.uuid) -> str | None:
9592
return self.brep.brep_component(id).name()
9693

94+
def is_active(self, id: og.uuid) -> bool:
95+
return self.brep.brep_component(id).is_active()
96+
9797
def inspect(self) -> og_inspector.BRepInspectionResult:
9898
return og_inspector.inspect_brep(self.brep)
9999

src/opengeodeweb_back/geode_objects/geode_model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@ def internals(self, id: og.uuid) -> list[og.ComponentID]: ...
3636
@abstractmethod
3737
def items(self, id: og.uuid) -> list[og.ComponentID]: ...
3838

39+
@abstractmethod
40+
def component_name(self, id: og.uuid) -> str | None: ...
41+
3942
@abstractmethod
4043
def is_active(self, id: og.uuid) -> bool: ...

src/opengeodeweb_back/geode_objects/geode_section.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ def items(self, id: og.uuid) -> list[og.ComponentID]:
9393
def component_name(self, id: og.uuid) -> str | None:
9494
return self.section.section_component(id).name()
9595

96+
def is_active(self, id: og.uuid) -> bool:
97+
return self.section.section_component(id).is_active()
98+
9699
def inspect(self) -> og_inspector.SectionInspectionResult:
97100
return og_inspector.inspect_section(self.section)
98101

0 commit comments

Comments
 (0)