depthmapx

0.0.11 • Public • Published

depthmapX for Node.js

Command Line Interface bindings for SpaceGroupUCL/depthmapX.

Compatibility

Methods

Every global option in depthmap CLI translates to a module method.

CLI mode option node module method
-m VGA dmx.vga
-m LINK dmx.link
-m VISPREP dmx.visprep
-m AXIAL dmx.axial
-m AGENTS dmx.agents
-m ISOVIST dmx.isovist
-m EXPORT dmx.exportData
-m IMPORT dmx.importData

Method Options

depthmapX CLI options are translated directly into node method options. See official depthmapX CLI docs for reference.

Example

const dmx = require('depthmapx')
 
// 1. import file
 
dmx.importData({
  f: 'example/archilogic-office.dxf',
  o: 'example/1_new.graph'
}).then(() => {
 
  // 2. calculate visibility
  
  return dmx.visprep({
    f:'example/1_new.graph',
    o:'example/2_visibility.graph',
    pg:'0.1',
    pp:'3.0,3.0'
  })
   
}).then(() => {
 
  // 3. export as CSV
  
  return dmx.exportData({
    f: 'example/2_visibility.graph',
    o: 'example/3_visibility.csv',
    em: 'pointmap-data-csv'
  })
 
})
 

Readme

Keywords

none

Package Sidebar

Install

npm i depthmapx

Weekly Downloads

12

Version

0.0.11

License

none

Last publish

Collaborators

  • mredele
  • stavrosatarchilogic
  • archilogic-ci
  • frederic-schwarz
  • bendevine
  • tomas-polach