|
|
2 years ago | |
|---|---|---|
| .. | ||
| README.md | 2 years ago | |
Auxiliary tools in 3D scenes to facilitate various measurements and markings in the scene
PLot Tool
let plot = new DC.Plot(viewer, {})
plot.draw(DC.OverlayType.POINT, (overlay) => {}, {})
constructor(viewer,[options])
{Viewer} viewer:场景{Object} options:属性plot// options(optional)
{
"icon_center": "**.png",
"icon_anchor": "**.png",
"icon_midAnchor": "**.png",
"icon_size": [12, 12],
"clampToModel":false
}
draw(type,callback,[style],[clampToModel])
{String} type OverlayType{Function} callback{Object} style{Boolean} clampToModel: Whether the point gets the surface coordinates, if false, it will get the current 3D coordinates of the mousethisedit(overlay,callback,[clampToModel])
{Overlay} overlay{Function} callback{Boolean} clampToModel: Whether the point gets the surface coordinates, if false, it will get the current 3D coordinates of the mousethisstop()
thisviewer measure
let measure = new DC.Measure(viewer)
constructor()
measureangle([options])
{Object} optionsthisarea([options])
{Object} optionsthisareaSurface([options])
{Object} optionsthisdistance([options])
{Object} optionsthisdistanceSurface([options])
{Object} optionsthisheading([options])
{Object} optionsthisheight([options])
{Object} optionsthistriangleHeight([options])
{Object} optionsthisactivate(type,[options])
{String} type{Object} optionsthis// options(optional)
{
"icon_center": "**.png",
"icon_anchor": "**.png",
"icon_midAnchor": "**.png",
"icon_size": [12, 12],
"clampToModel": false
}
deactivate()
this