Node.js Bindings for depthmapX CLI
Command Line Interface bindings for depthmapX. Every global option in depthmap CLI has it's method in the depthmapX namespace.
Methods
DepthmapX CLI mode | node depthmapX method |
---|
VGA | vga |
LINK | link |
VISPREP | visprep |
AXIAL | axial |
AGENTS | agents |
ISOVIST | isovist |
EXPORT | exportData |
IMPORT | 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')
dmx.importData({
f: 'example/archilogic-office.dxf',
o: 'example/1_new.graph'
}).then(() => {
return dmx.visprep({
f:'example/1_new.graph',
o:'example/2_visibility.graph',
pg:'0.1',
pp:'3.0,3.0'
})
}).then(() => {
return dmx.exportData({
f: 'example/2_visibility.graph',
o: 'example/3_visibility.csv',
em: 'pointmap-data-csv'
})
})