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

Method __init__

python/dolfinx/mesh.py:281–293  ·  view source on GitHub ↗

Initialize a geometry from a C++ geometry. Args: geometry: The C++ geometry object. Note: Geometry objects should usually be constructed with the :func:`create_geometry` and not using this class initializer. This class is combined wit

(self, geometry: _cpp.mesh.Geometry_float32 | _cpp.mesh.Geometry_float64)

Source from the content-addressed store, hash-verified

279 _cpp_object: _cpp.mesh.Geometry_float32 | _cpp.mesh.Geometry_float64
280
281 def __init__(self, geometry: _cpp.mesh.Geometry_float32 | _cpp.mesh.Geometry_float64):
282 """Initialize a geometry from a C++ geometry.
283
284 Args:
285 geometry: The C++ geometry object.
286
287 Note:
288 Geometry objects should usually be constructed with the
289 :func:`create_geometry` and not using this class
290 initializer. This class is combined with different base
291 classes that depend on the scalar type used in the Geometry.
292 """
293 self._cpp_object = geometry
294
295 @property
296 def cmaps(self) -> list[_CoordinateElement]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected