LengthMeasurement
Source
Copying and pasting? We've got you covered! You can find the full source code of this tutorial here.
๐ Measuring lengthsโ
Space control is one of the most important elements of BIM applications. In this tutorial, you'll learn how to expose a length measurement tool to your end users. We will import:
three
to create some 3D items.@thatopen/components
to set up the barebone of our app.@thatopen/components-front
to use some frontend-oriented components.@thatopen/ui
to add some simple and cool UI menus.Stats.js
(optional) to measure the performance of our app.
import Stats from "stats.js";
import * as OBC from "@thatopen/components";
import * as THREE from "three";
import * as BUI from "@thatopen/ui";
import * as OBCF from "@thatopen/components-front";