test model #59
|
@ -235,13 +235,13 @@ const goal = (target: string, params: object) => {
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="form_state.extra_section">
|
<template v-if="form_state.extra_section">
|
||||||
<div class="col-span-4 calc_table-maincell">Секции</div>
|
<div class="col-span-4 calc_table-maincell">Дополнительная секция</div>
|
||||||
<div class="col-span-2 calc_table-maincell">1</div>
|
<div class="col-span-2 calc_table-maincell">1</div>
|
||||||
<div class="col-span-6 sm:col-span-4">
|
<div class="col-span-6 sm:col-span-4">
|
||||||
Ламели, RAL {{ lamelle_color }}, {{ getColorNameFromRal(lamelle_color)?.toLowerCase() }}
|
Ламели, RAL {{ lamelle_color }}, {{ getColorNameFromRal(lamelle_color)?.toLowerCase() }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-span-3 sm:col-span-1">
|
<div class="col-span-3 sm:col-span-1">
|
||||||
Доп. {{ 1 * lamelles_count }}</div>
|
{{ 1 * lamelles_count }}</div>
|
||||||
<div class="col-span-3 sm:col-span-1">{{
|
<div class="col-span-3 sm:col-span-1">{{
|
||||||
`${parseFloat(form_state.extra_section.toString()).toFixed(2)}\xa0мм` }}</div>
|
`${parseFloat(form_state.extra_section.toString()).toFixed(2)}\xa0мм` }}</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useGLTF, Text3D } from '@tresjs/cientos'
|
import { useGLTF, Text3D } from '@tresjs/cientos'
|
||||||
import { DoubleSide, Vector3 } from 'three';
|
import { DoubleSide, Object3D, Vector3 } from 'three';
|
||||||
const props = defineProps(['modelUrl', 'model', 'position', 'target', 'parent'])
|
const props = defineProps(['modelUrl', 'model', 'position', 'target', 'parent'])
|
||||||
|
|
||||||
let scene: any
|
let scene: any
|
||||||
|
@ -62,17 +62,12 @@ watch(props, () => {
|
||||||
}, { deep: true })
|
}, { deep: true })
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<template v-if="scene.children[0]">
|
<TresGroup ref="model" :position="(props.position || [0, 0, 0])" :scale="1">
|
||||||
<TresGroup ref="model" :name="scene.children[0].name">
|
<template v-if="scene.children[0].type == 'Group'">
|
||||||
<Suspense>
|
<TresObject3D v-for="item in scene.children[0].children" v-bind="item" />
|
||||||
<primitive :object="scene.children[0]" :position="(props.position || [0, 0, 0])" />
|
|
||||||
</Suspense>
|
|
||||||
<Suspense v-if="false">
|
|
||||||
<Text3D :text="scene.children[0].name"
|
|
||||||
font='https://raw.githubusercontent.com/Tresjs/assets/main/fonts/FiraCodeRegular.json'>
|
|
||||||
<TresMeshNormalMaterial color=red />
|
|
||||||
</Text3D>
|
|
||||||
</Suspense>
|
|
||||||
</TresGroup>
|
|
||||||
</template>
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<TresObject3D v-for="item in (scene.children)" v-bind="item" />
|
||||||
|
</template>
|
||||||
|
</TresGroup>
|
||||||
</template>
|
</template>
|
Loading…
Reference in New Issue