@description: 矩形

Hierarchy (view full)

Constructors

Properties

_paramsStyle: Partial<PolygonStyle>
geometryInfoNeedUpdate: boolean = true
meshBackground: Mesh<RectangleGeometry, MeshBasicMaterial>
meshFont: Mesh<RectangleGeometry, MeshBasicMaterial>
name: string = 'RectangleMesh'
needsRender: boolean
planeHelperNeedUpdate: boolean = true
points: Vector3[] = []

Accessors

  • get center(): Vector3
  • Returns Vector3

  • get color(): Color
  • Returns Color

  • get geometry(): TGeometry
  • Returns TGeometry

  • set geometry(geometry): void
  • Parameters

    • geometry: TGeometry

    Returns void

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

    • area: number
    • center: Vector3
  • get isBlank(): boolean
  • Returns boolean

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

  • get occlusionVisibility(): boolean
  • Returns boolean

  • get opacity(): number
  • Returns number

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

    • color: Color
    • lengthEnable: boolean
    • occlusionMode: "translucence" | "depthTest"
    • occlusionVisibility: boolean
    • opacity: number

Methods

  • Adds object as child of this object.

    Parameters

    • Rest...objects: Object3D[]

    Returns RectangleMesh

  • Returns void

  • @description: 获取一个点投影在当前平面上的点

    Parameters

    • point: Vector3

    Returns Vector3

  • Parameters

    • points: AnyPositions

    Returns void

  • Parameters

    • params: Partial<ColoredMeshStyle>

    Returns void

  • Returns void

  • Updates global transform of the object and its children.

    Parameters

    • Optionalforce: boolean

    Returns void