Skip to content

Commit ceace9c

Browse files
committed
stub out line material
1 parent d8b075e commit ceace9c

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!--
2+
Copyright 2015-2025 The Khronos Group Inc.
3+
SPDX-License-Identifier: CC-BY-4.0
4+
-->
5+
6+
# EXT_materials_CAD_line_style
7+
8+
## Contributors
9+
10+
* Paul Connelly, Bentley Systems, [@pmconne](https://github.com/pmconne)
11+
12+
## Status
13+
14+
Complete
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 use lines extensively to annotate both two- and three-dimensional visualizations. Different lines are rendered with different styles to convey particular semantics and/or differing levels of emphasis. A CAD line style specifies the width of the line and a dash pattern. The EXT_materials_CAD_line_style augments a material with a description of a CAD line style.
23+
24+
## Example
25+
26+
27+
[open question: device-pixel-ratio for width and pixel patterns?]
28+
29+
## glTF Schema Updates
30+
31+
The `EXT_materials_CAD_line_style` extension is applied to a material. If that material is used by any line-type primitive, or by the edges described by the `EXT_mesh_primitive_edge_visibility` extension, then it dictates the width and pattern with which the lines are to be drawn.
32+
33+
The `width` property specifies the length of
34+
35+
36+
## Implementation Notes
37+
38+
[tesselation generally required for width > 1 because many graphics APIs like WebGL no longer support wide line primitives]
39+
[implementation may smooth out the tesselated lines by, e.g., inserting triangles at the joints]
40+
[pattern should be continuous along the length of a line string]
41+
[patterns could be aggregated into a texture]
42+
43+
## JSON Schema
44+
45+
- [EXT_mesh_primitive_restart.schema.json](schema/EXT_mesh_primitive_restart.schema.json)
46+
- [primitiveGroup.schema.json](schema/primitiveGroup.schema.json)
47+

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

Whitespace-only changes.

0 commit comments

Comments
 (0)