Tools
# Tools
Auxiliary tools in 3D scenes to facilitate various measurements and markings in the scene
# Joint3d.Plot
PLot Tool
# example
let plot = new Joint3d.Plot(viewer, {})
plot.draw(Joint3d.OverlayType.POINT, (overlay) => {}, {})
# creation
constructor(viewer,[options])
- parameters
{Viewer} viewer
:场景{Object} options
:属性
- returns
plot
- parameters
// options(optional)
{
"icon_center": "**.png",
"icon_anchor": "**.png",
"icon_midAnchor": "**.png",
"icon_size": [12, 12]
}
# methods
draw(type,callback,[style],[clampToGround])
- parameters
{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 mouse
- returns
this
- parameters
edit(overlay,callback,[clampToGround])
- parameters
{Overlay} overlay
{Function} callback
{Boolean} clampToModel
: Whether the point gets the surface coordinates, if false, it will get the current 3D coordinates of the mouse
- returns
this
- parameters