Versions Compared

Key

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

...

There are three type of Geometry objects.

  • 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.

    Code Block
    borderColorGreen
    titleExample
    langxmltitleExample
    
    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 Bimplus compressed mesh format with the help of a DLL in order to minimize the JSON object.

    Code Block
    borderColorGreen
    titleExample
    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.

    Code Block
    borderColorGreen
    titleExample
    langxmltitleExample
    
    threejs: {
             <ThreeJS_JSON_format>
             }
    

...

...

Model

...

Note

Not used in the current edition

...