0.3.5-alpha • Published 11 months ago

@gs.i/thick-line-builder v0.3.5-alpha

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Thick Line Builder

Extend line strings into triangle meshes with uv, dynamic width and miter/bevel/round joint.

This tool generates "noodle-like" meshes, with no thickness, that always face the positive z-axis.

This tool can generate optional UV(u along the length and v long the width) that is evenly distributed along the actual length rather than the count of points. UV will be delicately handled for different kind of joint to "morph" along the shape of the line.

An alternative method, buildMultiThickLine, is provided to generate non-continuous line segments with continuous UV. If you want a single geometry with non-continuous line segments and independent UV. Use buildThickLine to generate geom for each segment and merge them.

If you want thick lines that always face the camera (extended in screen space). You should use @gs.i/frontend-gline. Gline generates thick lines with miter and bevel joint in shaders.

miter

npm.io

bevel with continuous UV

npm.io

round

npm.io

0.3.2-alpha

12 months ago

0.3.5-alpha

11 months ago

0.3.0-alpha

12 months ago

0.3.1-alpha

12 months ago

0.3.3-alpha

12 months ago

0.3.4-alpha

11 months ago

0.2.1-alpha.33

1 year ago

0.2.1-alpha.34

1 year ago

0.2.1-alpha.32

1 year ago

0.2.1-alpha.31

1 year ago

0.2.1-alpha.30

1 year ago

0.2.1-alpha.28

2 years ago

0.2.1-alpha.29

2 years ago

0.2.1-alpha.26

2 years ago

0.2.1-alpha.27

2 years ago

0.2.1-alpha.25

2 years ago

0.2.1-alpha.23

2 years ago

0.2.1-alpha.22

2 years ago

0.2.1-alpha.21

2 years ago

0.2.1-alpha.19

2 years ago

0.2.1-alpha.18

2 years ago

0.2.1-alpha.17

2 years ago

0.2.1-alpha.16

2 years ago

0.2.1-alpha.15

2 years ago

0.2.1-alpha.14

2 years ago

0.2.1-alpha.12

2 years ago

0.2.1-alpha.11

2 years ago

0.2.1-alpha.10

2 years ago

0.2.1-alpha.9

2 years ago

0.2.1-alpha.8

2 years ago

0.2.1-alpha.7

2 years ago

0.2.1-alpha.6

2 years ago

0.2.1-alpha.5

2 years ago

0.2.1-alpha.4

2 years ago

0.2.1-alpha.3

2 years ago

0.2.1-alpha.0

2 years ago

0.2.1-alpha

2 years ago

0.2.0-alpha

2 years ago