Skip to content
Snippets Groups Projects
Commit 5a80def1 authored by Alexander Rose's avatar Alexander Rose
Browse files

tweaked polymer trace for coarse units

parent 50cdc8da
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@ async function createPolymerTraceMesh(ctx: RuntimeContext, unit: Unit, structure
const vertexCount = linearSegments * radialSegments * polymerElementCount + (radialSegments + 1) * polymerElementCount * 2
const builder = MeshBuilder.create(vertexCount, vertexCount / 10, mesh)
const isCoarse = Unit.isCoarse(unit)
const state = createCurveSegmentState(linearSegments)
const { curvePoints, normalVectors, binormalVectors } = state
......@@ -54,6 +55,7 @@ async function createPolymerTraceMesh(ctx: RuntimeContext, unit: Unit, structure
interpolateCurveSegment(state, v, tension, shift)
let width = sizeTheme.size(v.center)
if (isCoarse) width *= aspectRatio / 2
if (isSheet) {
const height = width * aspectRatio
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment