diff --git a/components/calcModels.vue b/components/calcModels.vue index 7e5d45a..f19a2f5 100644 --- a/components/calcModels.vue +++ b/components/calcModels.vue @@ -23,14 +23,7 @@ const cameraStat = reactive({ }) const pointLight = ref() - -const groundMaterial = ref({ - color: "#555", - roughness: 0.7, - metalness: 0, - side: FrontSide, - precision: 'lowp', -}) +const pointLight2 = ref() const loadAll = async () => { const { scene: light } = await useGLTF('/models_light/zabor_so_svetom.glb') pointLight.value = light.children[2] diff --git a/components/calcValues.vue b/components/calcValues.vue index 3aab477..9195f72 100644 --- a/components/calcValues.vue +++ b/components/calcValues.vue @@ -78,11 +78,11 @@ const changeParametres = () => { if (auto_length) { let w = parametric.length.min const max_sections = Math.floor((total_length_mm - fence_length) / (parametric.length.min + fence_length)) - const min_sections = Math.ceil((total_length_mm - fence_length) / (parametric.length.max + fence_length)) + const min_sections = Math.floor((total_length_mm - fence_length) / (parametric.length.max + fence_length)) for (let index = min_sections; index <= max_sections; index++) { full_sections = index - w = (total_length_mm - fence_length * (index - 1)) / index + w = (total_length_mm - fence_length - fence_length * index) / index if ( w >= parametric.length.min && w <= parametric.length.max @@ -99,7 +99,7 @@ const changeParametres = () => { } } - if (((full_sections * length) + (full_sections * fence_length) + fence_length) <= total_length_mm) { + if (((full_sections * length) + (full_sections * fence_length) + fence_length) < total_length_mm) { form_state.extra_section = Math.floor((total_length_mm - fence_length) % length) } else { form_state.extra_section = 0 @@ -160,19 +160,6 @@ const goal = (target: string, params: object) => { -
+ Внимание! Дополнительная секция приводит к увеличению стоимости. + Рекомендуем вам изменить длину забора или длину секции! +
+Забор общей длиной {{ form_state.total_length }}{{ '\xa0' }}м, @@ -227,17 +227,13 @@ const goal = (target: string, params: object) => { {{ `длиной ${form_state.extra_section}\xa0мм` }}
. -
- Окрашивается по технологии порошковой окраски:
- ламели: {{ getColorNameFromRal(lamelle_color)?.toLowerCase() }};
- столбы: {{ getColorNameFromRal(pillar_color)?.toLowerCase() }}.
-
- Внимание! Дополнительная секция приводит к увеличению стоимости. - Рекомендуем вам изменить длину забора или длину секции! +
+ Окрашивается по технологии порошковой окраски:
+ ламели: {{ getColorNameFromRal(lamelle_color)?.toLowerCase() }};
+ столбы: {{ getColorNameFromRal(pillar_color)?.toLowerCase() }}.