UnitZeroOne

Avatar

A blog written by Ralph Hauwert, freelance developer, specialized in realtime visualisation, 3D and application development.

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:
  • Digg
  • del.icio.us
  • DZone
  • StumbleUpon
  • Slashdot
  • Technorati
  • blogmarks
  • BlogMemes
  • Ma.gnolia

Related posts:

  1. Triangle3D : Small Flash 10 3D demo.
  2. Goodbye, Papervision.
  3. Source : Better Flash 10 3D interaction : ArcBall
  4. Flash 10, Massive amounts of 3D particles with Alchemy (source included).

5 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

  3. caydieu

    Hi, I like your half sphere and am trying to use it. I noticed that the material is applied to the sphere and then the sphere is cut into halves, this in turn produces a half sphere with half the material. Is there a way to make it so that my material doesn’t get cut up? Thanks in advance.

    -cay

  4. caydieu

    Hi, How do you apply material to only half of the sphere so that you’d get the full material instead of just half, thanks in advance

    -cay

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

Search

Site hosted by :