PMI Geometry

Below we will consider the geometry added to a client side model. This objects have dynamic part of geometry which depends on view scaling.

The C3D Web Vision supports the following types of objects:

export enum C3DViewObjectTypes
{
    Comment = "Comment",
    LineDimension = "LineDimension",
    AngleDimension = "AngleDimension",
    RadialDimension = 'RadialDimension',
    Box = "Box",
    Sphere = "Sphere",
    Curve = "Curve",
}

New in version 1.5.0: A line, angle and radial dimensions.

New in version 1.6.0: A box, sphere and curve objects.

To add geometry to a graphics scene, you should use the AddAnnotation command.

Example of adding comment object (TypeScript):

view.runCommand({
    name: "AddAnnotation",
    objs: [{
        type: C3DViewObjectTypes.Comment, // "Comment"
        uuid: "26405536-2d18-48db-968e-ebc536d0a572",
        points: {
            target: {x:0, y:0, z:0},
            shelf: {x:100, y:20, z:0},
        },
        options: {
            text: "My comment",
        }
    }],
})

Note

It’s recommended to use processes to add objects in interactive mode.

All objects may be add by add command.

New in version 1.6.0: uuid parameter is optional. The object UUID will generate without it.