You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Caven Chen 38c49665d2 update docs 2 years ago
..
README.md update docs 2 years ago

README.md


Tools 🌎

Auxiliary tools in 3D scenes to facilitate various measurements and markings in the scene

DC.Plot

PLot Tool

example

let plot = new DC.Plot(viewer, {})
plot.draw(DC.OverlayType.POINT, (overlay) => {}, {})

creation

  • constructor(viewer,[options])

    • parameters
    • {Viewer} viewer:场景
    • {Object} options:属性
    • returns plot
// options(optional)
{
  "icon_center": "**.png",
  "icon_anchor": "**.png",
  "icon_midAnchor": "**.png",
  "icon_size": [12, 12],
  "clampToModel":false
}

methods

  • draw(type,callback,[style],[clampToModel])

    • 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
  • edit(overlay,callback,[clampToModel])

    • 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
  • stop()

    • returns this

DC.Measure

viewer measure

example

let measure = new DC.Measure(viewer)

creation

  • constructor()

    • returns measure

methods

  • angle([options])

    • parameters
    • {Object} options
    • returns this
  • area([options])

    • parameters
    • {Object} options
    • returns this
  • areaSurface([options])

    • parameters
    • {Object} options
    • returns this
  • distance([options])

    • parameters
    • {Object} options
    • returns this
  • distanceSurface([options])

    • parameters
    • {Object} options
    • returns this
  • heading([options])

    • parameters
    • {Object} options
    • returns this
  • height([options])

    • parameters
    • {Object} options
    • returns this
  • triangleHeight([options])

    • parameters
    • {Object} options
    • returns this
  • activate(type,[options])

    • parameters
    • {String} type
    • {Object} options
    • returns this
// options(optional)
{
  "icon_center": "**.png",
  "icon_anchor": "**.png",
  "icon_midAnchor": "**.png",
  "icon_size": [12, 12],
  "clampToModel": false
}
  • deactivate()

    • returns this