Three Vue3Three Vue3
Guide
  • English
  • 简体中文
GitHub
Guide
  • English
  • 简体中文
GitHub
    • Getting Started
    • Scene
    • SkyBox
    • Model Loader

      • Component Loader
      • Function Loader
    • Popup
    • Movable Element
    • Animation
    • Mesh

      • Wave Circle Mesh
        • Default Usage
        • Custom Options
        • Constructor Parameters
    • Effect

      • Bloom

type

Class

Default Usage

Click me to view the codes
<template>
  <tv-scene class="popup" @created="created"></tv-scene>
</template>

<script lang="ts" setup>
import { WaveCircleMesh } from 'three-vue3'

const mesh = new WaveCircleMesh()
const created = (scene, { camera }) => {
  camera.position.set(0, 2, 0)

  // Add mesh to scene.
  scene.add(mesh)
}
</script>

<style>
.popup {
  margin-top: 10px;
  width: 100%;
  height: 300px;
}
</style>

Custom Options

Click me to view the codes
<template>
  <tv-scene class="popup" @created="created"></tv-scene>
</template>

<script lang="ts" setup>
import { WaveCircleMesh, AxisType } from 'three-vue3'

const mesh = new WaveCircleMesh({
  radius: 0.5,
  color: [0.98, 0.61, 0.6, 1],
  speed: 2,
  verticalAxis: AxisType.X
})
const created = (scene, { camera }) => {
  camera.position.set(2, 0, 0)

  // Add mesh to scene.
  scene.add(mesh)
  mesh.position.set(...[0, 0.5, 0])
}
</script>

<style>
.popup {
  margin-top: 10px;
  width: 100%;
  height: 300px;
}
</style>

Constructor Parameters

ParamterPropsTypeDefaultDescription
optionsradiusnumber1optional The radius of the wave circle.
color[number, number, number, number][0.6, 0.96, 0.98, 1]optional The color of the wave circle.
speednumber1optional The speed of the circle wave.
verticalAxisAxisTypeAxisType.Yoptional The circle face vertical axis. The type AxisType is X or Y or Z.
Edit this page on GitHub
Last Updated:
Contributors: Shing Rui