awatif-ui
Version:
Awatif User Interface
25 lines (21 loc) • 482 B
text/typescript
import van from "vanjs-core";
import { getViewer } from "./getViewer";
import { Node } from "awatif-fem";
const nodes = van.state([
// To test orientation for beams
[],
[],
// To test orientation for shells
[],
[],
[],
] as Node[]);
const elements = van.state([
[],
[],
]);
const viewerElm = getViewer({
mesh: { nodes, elements },
settingsObj: { orientations: true },
});
document.body.appendChild(viewerElm);