Home Reference Source Repository
import Region from 'awv3/src/three/region.js'
public class | source

Region

Extends:

three~THREE.Object3D → Region

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

points: *[]

public
public

Method Summary

Public Methods
public

Computes the bounding sphere of the points (in model coordinates).

public

raycast(raycaster: *, intersects: *)

This code is mostly copied form THREE.Points.js and adjusted to the fact that Region does not have geometry or graphical representation

Public Constructors

public constructor() source

Public Members

public boundingSphere: * source

public points: *[] source

public radiussq: number source

public type: string source

Public Methods

public computeBoundingSphere() source

Computes the bounding sphere of the points (in model coordinates).

public raycast(raycaster: *, intersects: *) source

This code is mostly copied form THREE.Points.js and adjusted to the fact that Region does not have geometry or graphical representation

Params:

NameTypeAttributeDescription
raycaster *
intersects *