PlaneGeometry
解析
var PlaneGeometry = /*#__PURE__*/function (_Geometry) {
_inheritsLoose(PlaneGeometry, _Geometry);
function PlaneGeometry(width, height, widthSegments, heightSegments) {
var _this;
_this = _Geometry.call(this) || this;
_this.type = 'PlaneGeometry';
_this.parameters = {
width: width,
height: height,
widthSegments: widthSegments,
heightSegments: heightSegments
};
_this.fromBufferGeometry(new PlaneBufferGeometry(width, height, widthSegments, heightSegments));
_this.mergeVertices();
return _this;
}
return PlaneGeometry;
}(Geometry);
可以看到planegeometry是继承自PlaneBufferGeometry的(事实上所有几何对象都是继承自对应的buffergeometry的)。