Skip to content

Vergeo2D.Mesh

Vergeo2D.Mesh logo

Vergeo2D.Mesh is a lightweight C# library for editing 2D texture meshes. It provides vertices, edges, triangular faces, texture and UV helpers, mask-driven grid generation, deformation hooks, editor utilities, mesh management, and render-data extraction for engine-agnostic 2D rigging tools.

The package targets net8.0, netstandard2.1, and netstandard2.0. The net8.0 asset is the primary modern path, while the .NET Standard assets support older hosts and toolchains that still need the mesh core.

Terminal window
dotnet add package Vergeo2D.Mesh
  • Editable mesh structures: Mesh2D, Vertex2D, Edge2D, and Face2D.
  • Texture helpers with image dimension loading and pixel-to-UV conversion.
  • Textured quad and grid generation for sprite deformation.
  • Mask support through predicates, IMeshMask2D, and alpha byte maps.
  • JSON serialization with configurable texture loading and file helpers.
  • Mesh validation diagnostics for import/editor pipelines.
  • Picking helpers for nearest vertex, nearest edge, barycentric coordinates, and UV lookup.
  • Deformation extension point via IMeshDeformer2D.
  • Pooled mesh management with generation-checked MeshHandle values.
  • Render extraction into backend-agnostic vertex and index buffers.
Preview 1 Preview 2
Vergeo2D.Mesh preview 1 Vergeo2D.Mesh preview 2
Item Value
Package ID Vergeo2D.Mesh
Current project version 1.2.0
Target frameworks net8.0, netstandard2.1, netstandard2.0
License GPL-3.0-or-later
Repository github.com/TamKungZ/Vergeo2D.Mesh