@description: 多棱柱

Hierarchy (view full)

Constructors

  • Parameters

    • Optionalparams: Partial<PrismData & OpacityStyle & ColorStyle & OcclusionStyle & LineColorStyle & LineOpacityStyle & LineWidthStyle>

    Returns PrismMesh

Properties

name: string = 'PrismMesh'
needsRender: boolean
paramStyle: Partial<PrismStyle>
prismMesh: ColoredMesh<Geometry | BufferGeometry> & {
    geometry: PrismGeometry;
} = ...

Accessors

  • get bottomPositions(): Vector3[]
  • Returns Vector3[]

  • get center(): Vector3
  • Returns Vector3

    notice: please use specified center instead, such as localCenter or worldCenter

  • get color(): Color
  • Returns Color

  • get geometryInfo(): {
        center: Vector3;
    }
  • Returns {
        center: Vector3;
    }

    • center: Vector3
  • get lineColor(): Color
  • Returns Color

  • get lineWidth(): number
  • Returns number

  • get localCenter(): Vector3
  • Returns Vector3

  • get occlusionMode(): "translucence" | "depthTest"
  • Returns "translucence" | "depthTest"

  • get occlusionVisibility(): boolean
  • Returns boolean

  • get opacity(): number
  • Returns number

  • get style(): {
        color: Color;
        lineColor: Color;
        lineWidth: number;
        occlusionMode: "translucence" | "depthTest";
        occlusionVisibility: boolean;
        opacity: number;
    }
  • Returns {
        color: Color;
        lineColor: Color;
        lineWidth: number;
        occlusionMode: "translucence" | "depthTest";
        occlusionVisibility: boolean;
        opacity: number;
    }

    • color: Color
    • lineColor: Color
    • lineWidth: number
    • occlusionMode: "translucence" | "depthTest"
    • occlusionVisibility: boolean
    • opacity: number
  • get topPosition(): Vector3
  • Returns Vector3

  • get topPositions(): Vector3[]
  • Returns Vector3[]

  • get worldCenter(): Vector3
  • Returns Vector3

Methods

  • Adds object as child of this object.

    Parameters

    • Rest...objects: Object3D[]

    Returns PrismMesh

  • Parameters

    • Rest...objects: Object3D[]

    Returns PrismMesh

  • Returns void

  • Parameters

    • raycaster: Raycaster
    • intersects: Intersection[]

    Returns boolean

  • Removes object as child of this object.

    Parameters

    • Rest...objects: Object3D[]

    Returns PrismMesh

  • Returns PrismMesh

  • Returns PrismMesh

  • Parameters

    • params: Partial<PrismData>

    Returns void

  • Parameters

    • params: Partial<PrismStyle> = {}

    Returns void

  • Returns void