Documentation Index
Fetch the complete documentation index at: https://mintlify.com/OpenGeometry-io/OpenGeometry/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheOpening class creates transparent cuboid volumes that represent openings in architectural models, such as doors, windows, or other voids. Openings are rendered with zero opacity but maintain outlines for visualization.
Constructor
Configuration options for the opening
Properties
Unique identifier for the opening instance
Current configuration options
Width of the opening (settable property)
Height of the opening (settable property)
Depth of the opening (settable property)
Get the current dimensions as an object with width, height, and depth
Enable or disable the outline rendering (settable property)
Access the outline mesh if enabled
Methods
setConfig()
Update the opening configuration and regenerate geometry.New configuration options to apply
getBrepData()
Get the boundary representation (BREP) data for the opening.generateGeometry()
Regenerate the Three.js geometry from the kernel.discardGeometry()
Dispose of the Three.js geometry to free memory.Example Usage
Basic Window Opening
Door Opening
Dynamic Resizing
Using BREP Data
Material Properties
The Opening uses aMeshStandardMaterial with these special properties:
- transparent:
true- Enables transparency - opacity:
0- Fully transparent (invisible volume) - depthWrite:
false- Allows seeing through to elements behind
Use Cases
Architectural Modeling
Create window and door openings in walls
Space Planning
Define void spaces in floor plans
Boolean Operations
Use as cutting volumes for wall penetrations
Visualization
Mark areas of interest with outlined volumes
Notes
Openings are rendered with zero opacity but can have visible outlines. Enable the outline property to visualize the opening boundaries.
Related
- Cuboid - Solid rectangular boxes
- Polygon - For 2D shapes that can be extruded
- Scene Management - Organizing multiple openings in a scene