Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • mesh: It is the default geometry type. It is an uncompressed mesh format where the geometry object will be compressed on the server before storing it into the database. eg:
    Code Block
    borderColorGreen
    langxml
    titleExample
    
    
    Code Block
     mesh: {
          colors: 4291993670,
          vertices: \[ 96.149, 179.546, ... \],
          faces: \[ 4,0,1,2,3, 3,4,5,6, ... \]
          }
    where,

    
    color:  array of decimal RGBA values;

    
    vertices: plain array of 3D vertices coordinates like [x0, y0, z0, x1, y1, z1, ...

    ]
    faces: plain array of faces definitions like first number is quantity of vertices, than vertex indices list, see example.
    
  • meshblob: It is a compressed mesh format intended to be used in the desktop CAD applications. Internal CAD format of the geometry will be converted into a bim+ compressed mesh format with the help of a DLL in order to minimize the JSON object.
    eg:
    Code Block
    borderColorGreen
    langxml
    titleExample
    
    meshblob: "d273f7a6a7d8f8725484fe6282..."
    
  • threejs: It is a format which is optimized for viewing on mobile devices or in browsers where the native model is filtered and tessellated in order to deliver minimal JSON size and maximal navigation speed (FPS). This model has
    Newwindowlink
    titleThreeJS JSON v 3.1
    urlhttps://github.com/mrdoob/three.js/wiki/JSON-Model-format-3.1
    format and can be directly parsed by the client.
    eg:
    threejs: {
    Code Block
    borderColorGreen
    langxml
    titleExample
    
    threejs: {
             <ThreeJS_JSON_format>

    }
    
             }
    
Note

Objects with geometry types "mesh" or "meshblob" can be written into the bim+ database, whereas the "threejs" geometry type is optimized for viewing on mobile devices or in browsers and cannot be written into the database directly.

...