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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more