Wireframe

Six geometry types rendered in wireframe mode.

Controls

Segments

4
32
import * as EASEL from "easel";

const scene = new EASEL.Scene();
const camera = new EASEL.OrthographicCamera({
  left: -size * aspect,
  right: size * aspect,
  top: size,
  bottom: -size,
  near: 0.1,
  far: 100,
});

// wireframe is a property on the material, read by the rasterizer
const mat = new EASEL.BasicMaterial({ color: 0xe06060 });
mat.wireframe = true;

const mesh = new EASEL.Mesh(new EASEL.SphereGeometry(1.0, 12, 9), mat);
scene.add(mesh);

// Lower segment counts make the polygon structure more visible.