ral
This commit is contained in:
commit
3757efdc49
|
@ -91,19 +91,31 @@ const roubleSign = new Intl.NumberFormat('ru-RU', {
|
|||
currency: 'RUB',
|
||||
});
|
||||
const total = computed(() => {
|
||||
const { mortgage, pillar, lamella } = calculatorData.value
|
||||
const { mortgage, pillar, lamella, rivets, bar, guide } = calculatorData.value
|
||||
const pillar_count = (section_count.value + 1)
|
||||
const pil = (parseFloat(mortgage) + parseFloat(pillar)) * pillar_count
|
||||
|
||||
const length = fence_section.value
|
||||
|
||||
const lam_count = lamelles_count.value * section_count.value
|
||||
const lam = lam_count * lamella
|
||||
const lam = (lam_count * length * parseFloat(lamella)) + parseFloat(rivets)
|
||||
|
||||
const top_count = section_count.value
|
||||
const top = top_count * lamella
|
||||
|
||||
const guides_count = section_count.value
|
||||
const guides = guides_count * parseFloat(guide) * lam_count * 115
|
||||
return [
|
||||
<<<<<<< HEAD
|
||||
`Столб, ${pillar_count} шт. : ${roubleSign.format(pil)}`,
|
||||
`Ламели, ${lam_count} шт. : ${roubleSign.format(lam)}`,
|
||||
`Верхняя планка, ${top_count} шт. : ${roubleSign.format(top)}`,
|
||||
=======
|
||||
`Столб, ${pillar_count}: (${parseFloat(mortgage)} + ${parseFloat(pillar)}) x ${pillar_count} = ${roubleSign.format(pil)}`,
|
||||
`Ламели, ${lam_count}: (${lam_count} x ${length} x ${lamella}) + ${rivets} = ${roubleSign.format(lam)}`,
|
||||
`Направляющая, ${guides_count}: ${guides_count} x ${guide} x ${lam_count} x 115 = ${roubleSign.format(guides)}`,
|
||||
`Верхняя планка, ${top_count}: ${top_count} x ${length} x ${bar} = ${roubleSign.format(top)}`,
|
||||
>>>>>>> b541bdead72bb5cbf7831e7da77c6540bdb94747
|
||||
]
|
||||
})
|
||||
</script>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
import { useGLTF } from '@tresjs/cientos'
|
||||
import { Box3, Color, DoubleSide, MeshStandardMaterial, Vector3 } from 'three';
|
||||
import { Box3, CanvasTexture, Color, DoubleSide, MeshStandardMaterial, Vector3 } from 'three';
|
||||
const props = defineProps(['modelUrl', 'model', 'position', 'removePos', 'target', 'color', 'map'])
|
||||
|
||||
let scene
|
||||
|
@ -19,14 +19,14 @@ box.expandByObject(scene.children[0]);
|
|||
let size = new Vector3();
|
||||
box.getSize(size)
|
||||
|
||||
const getMaterial = () => {
|
||||
const getMaterial = async () => {
|
||||
return new MeshStandardMaterial({
|
||||
color: new Color(props.color || '#9c9c9c'),
|
||||
roughness: 0.3,
|
||||
metalness: 0.3,
|
||||
metalness: 0.3
|
||||
})
|
||||
}
|
||||
const material = getMaterial()
|
||||
const material = await getMaterial()
|
||||
function shadows_and_pos(scene: any) {
|
||||
scene.children.forEach((el: any) => {
|
||||
if (el.isMesh) {
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
Loading…
Reference in New Issue