Skip to content

Commit 53fd0e6

Browse files
committed
plaanr fill
1 parent 82afeeb commit 53fd0e6

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!--
2+
Copyright 2015-2025 The Khronos Group Inc.
3+
SPDX-License-Identifier: CC-BY-4.0
4+
-->
5+
6+
# BENTLEY_materials_planar_fill
7+
8+
## Contributors
9+
10+
* Paul Connelly, Bentley Systems, [@pmconne](https://github.com/pmconne)
11+
12+
## Status
13+
14+
Draft
15+
16+
## Dependencies
17+
18+
Written against the glTF 2.0 spec.
19+
20+
## Overview
21+
22+
3D modeling and computer-aided drafting (CAD) environments like SketchUp, MicroStation, and Revit make extensive use of non-photorealistic two- and three-dimensional visualizations involving planar polygons with filled interiors. The `BENTLEY_materials_planar_fill` allows the behavior of the interior fill to be customized.
23+
24+
This specification describes a minimal extension sufficient to meet Bentley Systems' requirements, with some suggestions for how it might be broadened and/or generalized while retaining a focus on CAD visualization.
25+
26+
## Specifying Planar Fill
27+
28+
The `BENTLEY_materials_planar_fill` extension is applied to a material. It specifies how the interior fill of a planar polygon should be rendered.
29+
30+
In a wireframe view, by default only the edges of polygons are displayed. The extension's `wireframeFill` property controls whether the fill is displayed in wireframe. `NONE` (0) indicates the fill is never drawn in wireframe, `ALWAYS` (1) indicates it is always drawn in wireframe, and `TOGGLE` indicates that it is drawn only if the user or application has chosen for toggleable fill to be drawn.
31+
32+
The extension's `backgroundFill` property, if `true`, specifies that the fill should be drawn in the same color as the view's background color. This permits an "invisible" polygon to mask out geometry behind it.
33+
34+
The extension's `behind` property, if `true`, specifies that the fill should be drawn behind other coplanar geometry representing the same object. This is useful for mitigating z-fighting when, for example, a hatch pattern is applied to a filled polygon, or text is drawn inside a filled rectangle.
35+
36+
> TBD: "representing the same object" has a specific meaning for Bentley (originating from the same element); it would need to be generalized somehow for other use cases.
37+
38+
## glTF Schema Updates
39+
40+
41+
## Implementation Notes
42+
43+
44+
## JSON Schema
45+
46+

extensions/2.0/Vendor/BENTLEY_materials_planar_fill/schema/material.BENTLEY_materials_planar_fill.schema.json

Whitespace-only changes.

0 commit comments

Comments
 (0)