These properties control the size, position, appearance, and behavior
of clip rooms in the scene. A clip room is a box-shaped clipping volume
that hides geometry outside its boundaries, allowing you to examine
internal structures of models.
The dimensions of the clip room along the X, Y, and Z axes.
These values define the width, height, and depth of the clip room
in local space before any transformations are applied.
Example:
// Get the webvis contextconstcontext = webvis.getContext();// Create a clip room that's 10 units wide, 5 units tall, and 8 units deepcontext.createClippingRoom({size: [10, 5, 8]});
This 4x4 matrix defines the complete transformation (position, rotation, and scale)
of the clip room in world space. It allows positioning and orienting the clip room
anywhere in the scene.
Example:
// Get the webvis contextconstcontext = webvis.getContext();// Create a clip room rotated 45 degrees around the Y axisconstangle = Math.PI / 4; // 45 degreesconstc = Math.cos(angle);consts = Math.sin(angle);context.createClippingRoom({size: [10, 5, 8],transform: [c, 0, s, 0, // First row (rotation + scale)0, 1, 0, 0, // Second row (rotation + scale) -s, 0, c, 0, // Third row (rotation + scale)0, 0, 0, 1// Fourth row (translation + w) ]});
Configuration properties for clip rooms.
These properties control the size, position, appearance, and behavior of clip rooms in the scene. A clip room is a box-shaped clipping volume that hides geometry outside its boundaries, allowing you to examine internal structures of models.
See