neso_fame.nektar_writer.nektar_edge(curve: Callable[[_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]], Coords], order: int, spatial_dim: int, layer_id: int) tuple[SegGeom, tuple[PointGeom, PointGeom]]

Return a Nektar++ SegGeom representing the curve to the specified order.

It also returns the PointGeom objects representing the start and end of the segment. Caching is used to ensure that the same curve, in the same layer, represented to the same order, will always return the same objects. The caching is done based on the locations of the control points of the curve, rather than the identity of the function defining the curve.


Last update: Sep 23, 2024