Infohub JS API
Loading...
Searching...
No Matches
ServiceRpc Class Reference

Description

Functions ...

Public Member Functions

 constructor (ctx)
async transformIfc (node_sid, request_data)

Function Documentation

◆ constructor()

constructor ( ctx)
Parameters
{Context}ctx

◆ transformIfc()

async transformIfc ( node_sid,
request_data )

/{scope}/ifc/{node}/transform

Parameters
{*}node_sid
{*}transformMap = { "object_id1": { // object ID "move": [ 1.0, 1.0, 2.0 ], // move [ dx , dy , dz ] "rotate": { "pivot": [ 11.3, 34.6, 34.0 ], // rotate around that point in global coordinates before moving the object "alpha": 45.0 } }, "object_id2": { "move": [ 1.0, 1.0, 0.0 ], "rotate": { "pivot": [ 11.3, 34.6, 34.0 ], "alpha": 45.0 } } }