kinemat/lib/kinemat/geometry/mesh.ex

19 lines
455 B
Elixir

defmodule Kinemat.Geometry.Mesh do
defstruct filename: nil
alias Kinemat.Geometry.Mesh
@moduledoc """
Describes a mesh geometry.
Note that kinemat doesn't understand meshes, however it may be required to be
able to describe them in URDF.
"""
@type t :: %Mesh{filename: Path.t()}
@doc """
Initialise a new mesh from the provided file.
"""
@spec init(Path.t()) :: Mesh.t()
def init(filename), do: %Mesh{filename: filename}
end