Skip to content

Instantly share code, notes, and snippets.

@hdon
Created January 23, 2009 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hdon/51035 to your computer and use it in GitHub Desktop.
Save hdon/51035 to your computer and use it in GitHub Desktop.
myMesh = Mesh.Primitives.Cube(2.0)
myMesh.faces[0].v
([MVert (1.000000 1.000000 1.414214) (0.577349 0.577349 0.577349) 0], [MVert (-1.000000 1.000000 1.414214) (-0.577349 0.577349 0.577349) 3], [MVert (-1.000000 -1.000000 1.414214) (-0.577349 -0.577349 0.577349) 2], [MVert (1.000000 -1.000000 1.414214) (0.577349 -0.577349 0.577349) 1])
myMesh = Mesh.Primitives.Cube(1.0)
myMesh.faces[0].v
([MVert (0.500000 0.500000 0.707107) (0.577349 0.577349 0.577349) 0], [MVert (-0.500000 0.500000 0.707107) (-0.577349 0.577349 0.577349) 3], [MVert (-0.500000 -0.500000 0.707107) (-0.577349 -0.577349 0.577349) 2], [MVert (0.500000 -0.500000 0.707107) (0.577349 -0.577349 0.577349) 1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment