remove pillar
This commit is contained in:
parent
6818f29a6f
commit
a3872f0a99
|
@ -201,7 +201,8 @@ const plurals = {
|
|||
</template>
|
||||
{{ section_count * lamelles_count }}
|
||||
<Plural :n="section_count * lamelles_count" :forms="plurals.lamelle" />
|
||||
{{ `длиной ${form_state.length}\xa0мм` }}<template v-if="form_state.extra_section">и
|
||||
{{ `длиной ${form_state.length}\xa0мм` }}
|
||||
<template v-if="form_state.extra_section">и
|
||||
{{ ~~(!!form_state.extra_section) * lamelles_count }}
|
||||
<Plural :n="~~(!!form_state.extra_section) * lamelles_count" :forms="plurals.lamelle" />
|
||||
{{ `длиной ${form_state.extra_section}\xa0мм` }}
|
||||
|
|
|
@ -8,7 +8,7 @@ const lamelles_count = useState<number>('lamelles_count')
|
|||
const fence_section = useState<number>('fence_section')
|
||||
const pillar_color = useState<ralTypes>('pillar_color')
|
||||
const lamelle_color = useState<ralTypes>('lamelle_color')
|
||||
const remove_pillar = useState<boolean>('pillar_color')
|
||||
const remove_pillar = useState<boolean>('remove_pillar')
|
||||
|
||||
const lSize = 0.115
|
||||
const bSize = 0.0235
|
||||
|
|
|
@ -38,6 +38,7 @@ const { scene: top } = await useGLTF('/models_one/verh_100.glb')
|
|||
const { scene: fence } = await useGLTF('/models_one/fence.glb')
|
||||
const { scene: fastening } = await useGLTF('/models_one/krepleniye_planok (1).glb')
|
||||
const { scene: lamelle } = await useGLTF('/models_one/lamel_100.glb')
|
||||
const { scene: back_light } = await useGLTF('/models_light/back_light.glb')
|
||||
|
||||
const { seek, seekAll } = useSeek()
|
||||
watch(section_count, () => {
|
||||
|
@ -81,6 +82,7 @@ ctx.fillRect(10, 10, 512, 512)
|
|||
console.log(canvas.toDataURL())
|
||||
const texture = new DataTexture(ctx?.getImageData(0, 0, 512, 512).data.buffer, width, height);
|
||||
texture.needsUpdate = true;
|
||||
console.log(back_light)
|
||||
</script>
|
||||
<template>
|
||||
<TresGroup :translate-y="-3.25" name="base">
|
||||
|
@ -105,6 +107,7 @@ texture.needsUpdate = true;
|
|||
<TresBoxGeometry :args="[1, 1, 1]" />
|
||||
<TresMeshStandardMaterial :map="texture_one" />
|
||||
</TresMesh>
|
||||
<TresDirectionalLight v-bind="back_light"/>
|
||||
<template v-for="i in section_count">
|
||||
<template v-if="i <= 20">
|
||||
<ModelFence :index="i" :models="{ top, fence, fastening, lamelle }" />
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue