mirror of
https://github.com/Theaninova/Bampy.git
synced 2026-01-08 01:32:48 +00:00
feat: functioning ring finding
This commit is contained in:
@@ -99,11 +99,12 @@
|
||||
|
||||
{#each $layers as { geometry, type }, i}
|
||||
{@const visible = showSlices >= i / $layers.length}
|
||||
{@const color = new Color(0, i / $layers.length, 0.2)}
|
||||
{@const color = new Color(Math.random() * 0xffffff)}
|
||||
<!---{@const color = new Color(0, i / $layers.length, 0.2)}-->
|
||||
{#if type === LayerType.Line}
|
||||
<T.LineSegments {geometry} {visible}>
|
||||
<T.Line {geometry} {visible}>
|
||||
<T.LineBasicMaterial {color} />
|
||||
</T.LineSegments>
|
||||
</T.Line>
|
||||
{:else if type === LayerType.Surface}
|
||||
<T.Mesh {geometry} {visible}>
|
||||
<T.MeshMatcapMaterial {color} side={DoubleSide} />
|
||||
|
||||
Reference in New Issue
Block a user