Skip to content

Instantly share code, notes, and snippets.

@meshula
Last active February 14, 2023 23:08
Show Gist options
  • Save meshula/eefb31b7f714aa3ee95a7e65b2891e56 to your computer and use it in GitHub Desktop.
Save meshula/eefb31b7f714aa3ee95a7e65b2891e56 to your computer and use it in GitHub Desktop.
osd-spec.md

property

face count, integer

the number of faces in a mesh

property

face topology, array of 8 bit unsigned integers

each entry at index i corresponds to face i the value of the entry is the arity of the face; i.e. a triangle is 3 and a quad is 4

property

face array

an array of integer tuples, arity indicated per tuple by the face count array, where each tuple is the vertex indices, in ccw order, describing a face

property

holes

hole array, array of unsigned integers

The value of an entry in the holes array indicates the index of a face that is a hole

property

edge creases

array of tuple of int, int, float Each entry refers to two vertex indices comprising an edge, and a weight between 0 and 1 indicating the amount of creasing

property

vertex creases

array of tuple of int, float Each entry refers to a vertex index, and a weight between 0 and 1 indicating the amount of creasing

property

method

Enumerated value indicating one of the subdivision rules, Catmull-Clark, or Loop, or Hybrid Catmull-Clark/Loop

property

boundary interpolation rules

Boundary interpolation rules control how subdivision and the limit surface behave for faces adjacent to boundary edges and vertices None, Edge Only, Boundary Edge and Corner

property

Face varying interpolation rules FVAR_LINEAR_NONE smooth everywhere the mesh is smooth FVAR_LINEAR_CORNERS_ONLY linearly interpolate (sharpen or pin) corners only FVAR_LINEAR_CORNERS_PLUS1 CORNERS_ONLY + sharpening of junctions of 3 or more regions FVAR_LINEAR_CORNERS_PLUS2 CORNERS_PLUS1 + sharpening of darts and concave corners FVAR_LINEAR_BOUNDARIES linear interpolation along all boundary edges and corners FVAR_LINEAR_ALL linear interpolation everywhere (boundaries and interior)

For further information, please see https://graphics.pixar.com/opensubdiv/docs/intro.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment