Buckets:

immErfanrajabee/bd / node_modules /three /examples /jsm /lines /WireframeGeometry2.js
imerfanrajabee's picture
download
raw
1.09 kB
import {
WireframeGeometry
} from 'three';
import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
/**
* A special type of line segments geometry intended for wireframe rendering.
*
* This is used in {@link Wireframe} to describe the shape.
*
* ```js
* const geometry = new THREE.IcosahedronGeometry();
* const wireframeGeometry = new WireframeGeometry2( geo );
* ```
*
* @augments LineSegmentsGeometry
* @three_import import { WireframeGeometry2 } from 'three/addons/lines/WireframeGeometry2.js';
*/
class WireframeGeometry2 extends LineSegmentsGeometry {
/**
* Constructs a new wireframe geometry.
*
* @param {BufferGeometry} [geometry] - The geometry to render the wireframe for.
*/
constructor( geometry ) {
super();
/**
* This flag can be used for type testing.
*
* @type {boolean}
* @readonly
* @default true
*/
this.isWireframeGeometry2 = true;
this.type = 'WireframeGeometry2';
this.fromWireframeGeometry( new WireframeGeometry( geometry ) );
// set colors, maybe
}
}
export { WireframeGeometry2 };

Xet Storage Details

Size:
1.09 kB
·
Xet hash:
14d4cd3df0c73a2617a8389033d35ff149002f7647477f63113c5ca88bfa59f0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.