UnitZeroOne

Avatar

A blog written by Ralph Hauwert, freelance front-end developer, specialized in rich internet applications, games and visualisation.

Papervision3D : Cut any mesh into 2 new meshes. (source).

Halved Sphere Example

A nice addition to the Papervision3D code base. With the latest repository version of Papervision3D 2.0 / GreatWhite, it is possible to cut any TriangleMesh into half. Here’s how :

var meshes:Array = MeshUtil.cutTriangleMesh(triangleMesh, cuttingPlane);

Where the cutting plane is a Plane3D and the triangle mesh is any object with it’s own triangle geometry, including for instance ASE, DAE, MD2 or Collada, but also all primitives.

Here’s an example source for download : Mesh Cutting sources

Digg, StumbleUpon, Slash and others: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • DZone
  • StumbleUpon
  • Slashdot
  • Technorati
  • blogmarks
  • BlogMemes
  • Ma.gnolia

Related posts :

3 Comments, Comment or Ping

  1. Love this one. Great job Ralph.

  2. markval

    Union of to Objects would be a lot more useful for file size.
    Instead of importing a whole sphere or object that is symetric, importing half of it and weld it would give same result with less file size?

    Good job with the whole project!

    regards

Reply to “Papervision3D : Cut any mesh into 2 new meshes. (source).”

Search

Projects & Work

A selection of current work

Advertising