diff --git a/components/model/fence.vue b/components/model/fence.vue index ce521ac..fc66e98 100644 --- a/components/model/fence.vue +++ b/components/model/fence.vue @@ -21,10 +21,11 @@ const scale_koef = 3 const show_pillar_one = ref(props.index == 1) const show_pillar_two = ref(true) const make_translate_to_section = () => { - const r = (fence_section.value * 0.5 + pillar_size * 4) + ((props.index - 1) / 2) * (fence_section.value + pillar_size + bSize) * scale_koef + let r = ((props.index - 1) / 2) * (fence_section.value + pillar_size + bSize) * scale_koef if (props.index % 2 == 0) { show_pillar_two.value = false show_pillar_one.value = true + r += (fence_section.value * 0.5 + bSize) * scale_koef return -1 * r } return r @@ -65,23 +66,23 @@ watch(fence_section, () => { - + - + - + diff --git a/components/model/parametric.vue b/components/model/parametric.vue index 60f750d..ef5137f 100644 --- a/components/model/parametric.vue +++ b/components/model/parametric.vue @@ -49,7 +49,6 @@ watch(section_count, () => { base?.remove(item) } } - // renderer.value.render(scene.value, camera.value) } })