提交 d10012eb 编写于 作者: M Mr.doob

ConvexGeometry: Removed Geometry.

上级 dabb95b3
// ConvexGeometry
THREE.ConvexGeometry = function ( points ) {
THREE.Geometry.call( this );
this.fromBufferGeometry( new THREE.ConvexBufferGeometry( points ) );
this.mergeVertices();
};
THREE.ConvexGeometry.prototype = Object.create( THREE.Geometry.prototype );
THREE.ConvexGeometry.prototype.constructor = THREE.ConvexGeometry;
// ConvexBufferGeometry
THREE.ConvexBufferGeometry = function ( points ) {
THREE.BufferGeometry.call( this );
......
import {
BufferGeometry,
Float32BufferAttribute,
Geometry
Float32BufferAttribute
} from '../../../build/three.module.js';
import { ConvexHull } from '../math/ConvexHull.js';
// ConvexGeometry
var ConvexGeometry = function ( points ) {
Geometry.call( this );
this.fromBufferGeometry( new ConvexBufferGeometry( points ) );
this.mergeVertices();
};
ConvexGeometry.prototype = Object.create( Geometry.prototype );
ConvexGeometry.prototype.constructor = ConvexGeometry;
// ConvexBufferGeometry
var ConvexBufferGeometry = function ( points ) {
BufferGeometry.call( this );
......@@ -72,4 +55,4 @@ var ConvexBufferGeometry = function ( points ) {
ConvexBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
ConvexBufferGeometry.prototype.constructor = ConvexBufferGeometry;
export { ConvexGeometry, ConvexBufferGeometry };
export { ConvexBufferGeometry };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册