MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / get_bbox

Method get_bbox

python/dolfinx/geometry.py:99–110  ·  view source on GitHub ↗

Get lower and upper corners of the ith bounding box. Args: i: Index of the box. Returns: The 'lower' and 'upper' points of the bounding box. Shape is ``(2, 3)``,

(self, i)

Source from the content-addressed store, hash-verified

97 return self._cpp_object.bbox_coordinates
98
99 def get_bbox(self, i) -> npt.NDArray[Real]:
100 """Get lower and upper corners of the ith bounding box.
101
102 Args:
103 i: Index of the box.
104
105 Returns:
106 The 'lower' and 'upper' points of the bounding box.
107 Shape is ``(2, 3)``,
108
109 """
110 return self._cpp_object.get_bbox(i)
111
112 def create_global_tree(self, comm) -> BoundingBoxTree[Real]:
113 """Create a global bounding box tree."""

Callers 4

test_sub_bbtree_boxFunction · 0.45
declare_bbtreeFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_sub_bbtree_boxFunction · 0.36