Module transformnd.adapters.meshio

Expand source code
from meshio import Mesh

from .base import AttrAdapter


class MeshAdapter(AttrAdapter[Mesh]):
    """Transform meshio.Mesh objects.

    N.B. Some transformations may create invalid meshes
    (incorrect winding, self-intersections, inversions etc.).
    """

    def __init__(self):
        super().__init__(points=None)

Classes

class MeshAdapter

Transform meshio.Mesh objects.

N.B. Some transformations may create invalid meshes (incorrect winding, self-intersections, inversions etc.).

Adapter which transforms an object by applying transforms to its attributes.

Parameters

adapters : Dict[str, Optional[BaseAdapter]]
Keys are attribute names, values are adapters with which to apply the transform to those attributes. None is shorthand for NullAdapter(); i.e. the attribute is a numpy.ndarray and can be transformed without being adapted.
Expand source code
class MeshAdapter(AttrAdapter[Mesh]):
    """Transform meshio.Mesh objects.

    N.B. Some transformations may create invalid meshes
    (incorrect winding, self-intersections, inversions etc.).
    """

    def __init__(self):
        super().__init__(points=None)

Ancestors

Inherited members