From 48065712de2fb51fbd5e0f6b845f82556c35db52 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Wed, 12 Jun 2024 13:49:20 +0300 Subject: [PATCH] fence section pos --- components/model/fence.vue | 15 ++++++++------- components/model/parametric.vue | 1 - 2 files changed, 8 insertions(+), 8 deletions(-) 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) } })