Public
Edited
Jun 2, 2021
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
testResolve = {
const v0 = scalarmul( scale, [[1, 0], y, [0]] );
const q = icosahedral_quaternions_vzome[ 27 ]
const vs = [ quattransform( q, v0 ) ]
const model = resolveSegments( vs.map(v => [[[0],[0],[0]], v]) );
// model.panels.push( { vertices: [5, 13, 14], color: panelColor } );
return model;
}
Insert cell
Insert cell
XXX html`
<table><tr>
<td>
${
vZome.reusable3dCanvas( this, meshGroup( testResolve ), { renderWidth:500 } )
}
</td>
<td>The shape models used to render these struts and balls
are imported from vZome. It is possible to hand-code your own shape models,
but we are not quite ready to document it.</span>
</td></tr></table>`
Insert cell
Insert cell
vZome = ({
renderModel,
meshGroup,
createShapeGeometry,
Geometries,
numberInput,
vectorInput,
quaternionInput
})
Insert cell
function renderModel( existingCanvas, model, config ) {
const { shapes=icosahedral_solid_connectors_shapes } = config
const solidParts = new Geometries( shapes, colors )
const group = meshGroup( model, solidParts )
return reusable3dCanvas( existingCanvas, group, config )
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more