fast-mesh-wasm
    Preparing search index...

    Function bindSection

    • Draws a section of the scene and clips the bound meshes at its plane.

      The plane is added to each bound mesh's material.clippingPlanes (unless clip is false), which three applies only when the renderer has renderer.localClippingEnabled = true. A mesh with an array of materials has the plane added to each; a material shared by several bound meshes gets it once.

      The lines and fill of a bound mesh are rebuilt when a frame's sectionsChanged lists the section for it; a mesh the section does not cut (or that is removed) draws nothing. Results are shown as last computed: a "lazy" or "manual" mesh's lag until the scene computes them. The plane follows Scene.setSectionPlane on the next frame. When the section is removed, the drawing is emptied and stops following the scene, and the plane is taken off the materials.

      Like bindMesh, it only listens through SceneLike.onChanges: call scene.commitFrame() once per animation frame.

      Parameters

      Returns BoundSection