Skip to content

Instantly share code, notes, and snippets.

@Quantumplation
Forked from martindevans/alignment.cs
Last active August 29, 2015 14:26
Show Gist options
  • Save Quantumplation/e0cffd312a486baa38cb to your computer and use it in GitHub Desktop.
Save Quantumplation/e0cffd312a486baa38cb to your computer and use it in GitHub Desktop.
geometry.Union(geometry
.CreatePrism(material, points.Quickhull2D().ToArray(), height)
.Translate(new Vector3(0, this.GroundOffset(height), 0))
.Transform(InverseWorldTransformation),
false
);
geometry.Union(geometry
.CreatePrism(material, points.Quickhull2D().ToArray(), height)
.Translate(new Vector3(0, this.GroundOffset(height), 0))
.Transform(InverseWorldTransformation),
false
);
geometry.Union(
geometry
.CreatePrism(material, points.Quickhull2D().ToArray(), height)
.Translate(new Vector3(0, this.GroundOffset(height), 0))
.Transform(InverseWorldTransformation),
false);
var prism =
geometry
.CreatePrism(material, points.Quickhull2D().ToArray(), height)
.Translate(new Vector3(0, this.GroundOffset(height), 0))
.Transform(InverseWorldTransformation);
geometry.Union(prism, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment