PHP 7.4.33
Preview: ClippingGroup.js Size: 1.30 KB
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/three/src/objects/ClippingGroup.js
import { Group } from './Group.js';

/**
 * In earlier three.js versions, clipping was defined globally
 * on the renderer or on material level. This special version of
 * `THREE.Group` allows to encode the clipping state into the scene
 * graph. Meaning if you create an instance of this group, all
 * descendant 3D objects will be affected by the respective clipping
 * planes.
 *
 * Note: `ClippingGroup` can only be used with `WebGPURenderer`.
 *
 * @augments Group
 */
class ClippingGroup extends Group {

	/**
	 * Constructs a new clipping group.
	 */
	constructor() {

		super();

		/**
		 * This flag can be used for type testing.
		 *
		 * @type {boolean}
		 * @readonly
		 * @default true
		 */
		this.isClippingGroup = true;

		/**
		 * An array with clipping planes.
		 *
		 * @type {Array<Plane>}
		 */
		this.clippingPlanes = [];

		/**
		 * Whether clipping should be enabled or not.
		 *
		 * @type {boolean}
		 * @default true
		 */
		this.enabled = true;

		/**
		 * Whether the intersection of the clipping planes is used to clip objects, rather than their union.
		 *
		 * @type {boolean}
		 * @default false
		 */
		this.clipIntersection = false;

		/**
		 * Whether shadows should be clipped or not.
		 *
		 * @type {boolean}
		 * @default false
		 */
		this.clipShadows = false;

	}

}

export { ClippingGroup };

Directory Contents

Dirs: 0 × Files: 14
Name Size Perms Modified Actions
45.51 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
612 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
1.30 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
702 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
10.04 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
8.12 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
730 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
1.59 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
6.33 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
11.92 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
5.58 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
7.70 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
8.47 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
5.98 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).