|
39129 | 39129 |
|
39130 | 39130 | ImmediateRenderObject.prototype.isImmediateRenderObject = true;
|
39131 | 39131 |
|
39132 |
| - /** |
39133 |
| - * @author mrdoob / http://mrdoob.com/ |
39134 |
| - */ |
39135 |
| - |
39136 |
| - function WireframeHelper( object, hex ) { |
39137 |
| - |
39138 |
| - var color = ( hex !== undefined ) ? hex : 0xffffff; |
39139 |
| - |
39140 |
| - LineSegments.call( this, new WireframeGeometry( object.geometry ), new LineBasicMaterial( { color: color } ) ); |
39141 |
| - |
39142 |
| - this.matrix = object.matrixWorld; |
39143 |
| - this.matrixAutoUpdate = false; |
39144 |
| - |
39145 |
| - } |
39146 |
| - |
39147 |
| - WireframeHelper.prototype = Object.create( LineSegments.prototype ); |
39148 |
| - WireframeHelper.prototype.constructor = WireframeHelper; |
39149 |
| - |
39150 | 39132 | /**
|
39151 | 39133 | * @author mrdoob / http://mrdoob.com/
|
39152 | 39134 | * @author WestLangley / http://github.com/WestLangley
|
|
39769 | 39751 |
|
39770 | 39752 | }() );
|
39771 | 39753 |
|
39772 |
| - /** |
39773 |
| - * @author WestLangley / http://github.com/WestLangley |
39774 |
| - * @param object THREE.Mesh whose geometry will be used |
39775 |
| - * @param hex line color |
39776 |
| - * @param thresholdAngle the minimum angle (in degrees), |
39777 |
| - * between the face normals of adjacent faces, |
39778 |
| - * that is required to render an edge. A value of 10 means |
39779 |
| - * an edge is only rendered if the angle is at least 10 degrees. |
39780 |
| - */ |
39781 |
| - |
39782 |
| - function EdgesHelper( object, hex, thresholdAngle ) { |
39783 |
| - |
39784 |
| - var color = ( hex !== undefined ) ? hex : 0xffffff; |
39785 |
| - |
39786 |
| - LineSegments.call( this, new EdgesGeometry( object.geometry, thresholdAngle ), new LineBasicMaterial( { color: color } ) ); |
39787 |
| - |
39788 |
| - this.matrix = object.matrixWorld; |
39789 |
| - this.matrixAutoUpdate = false; |
39790 |
| - |
39791 |
| - } |
39792 |
| - |
39793 |
| - EdgesHelper.prototype = Object.create( LineSegments.prototype ); |
39794 |
| - EdgesHelper.prototype.constructor = EdgesHelper; |
39795 |
| - |
39796 | 39754 | /**
|
39797 | 39755 | * @author alteredq / http://alteredqualia.com/
|
39798 | 39756 | * @author mrdoob / http://mrdoob.com/
|
|
40724 | 40682 |
|
40725 | 40683 | //
|
40726 | 40684 |
|
| 40685 | + function EdgesHelper( object, hex ) { |
| 40686 | + console.warn( 'THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead.' ); |
| 40687 | + return new LineSegments( new EdgesGeometry( object.geometry ), new LineBasicMaterial( { color: hex !== undefined ? hex : 0xffffff } ) ); |
| 40688 | + } |
| 40689 | + |
| 40690 | + function WireframeHelper( object, hex ) { |
| 40691 | + console.warn( 'THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead.' ); |
| 40692 | + return new LineSegments( new WireframeGeometry( object.geometry ), new LineBasicMaterial( { color: hex !== undefined ? hex : 0xffffff } ) ); |
| 40693 | + } |
| 40694 | + |
| 40695 | + // |
| 40696 | + |
40727 | 40697 | Object.assign( Box2.prototype, {
|
40728 | 40698 | center: function ( optionalTarget ) {
|
40729 | 40699 | console.warn( 'THREE.Box2: .center() has been renamed to .getCenter().' );
|
@@ -41619,15 +41589,13 @@
|
41619 | 41589 | exports.Color = Color;
|
41620 | 41590 | exports.MorphBlendMesh = MorphBlendMesh;
|
41621 | 41591 | exports.ImmediateRenderObject = ImmediateRenderObject;
|
41622 |
| - exports.WireframeHelper = WireframeHelper; |
41623 | 41592 | exports.VertexNormalsHelper = VertexNormalsHelper;
|
41624 | 41593 | exports.SpotLightHelper = SpotLightHelper;
|
41625 | 41594 | exports.SkeletonHelper = SkeletonHelper;
|
41626 | 41595 | exports.PointLightHelper = PointLightHelper;
|
41627 | 41596 | exports.HemisphereLightHelper = HemisphereLightHelper;
|
41628 | 41597 | exports.GridHelper = GridHelper;
|
41629 | 41598 | exports.FaceNormalsHelper = FaceNormalsHelper;
|
41630 |
| - exports.EdgesHelper = EdgesHelper; |
41631 | 41599 | exports.DirectionalLightHelper = DirectionalLightHelper;
|
41632 | 41600 | exports.CameraHelper = CameraHelper;
|
41633 | 41601 | exports.BoundingBoxHelper = BoundingBoxHelper;
|
|
41837 | 41805 | exports.ParticleBasicMaterial = ParticleBasicMaterial;
|
41838 | 41806 | exports.ParticleSystemMaterial = ParticleSystemMaterial;
|
41839 | 41807 | exports.Vertex = Vertex;
|
| 41808 | + exports.EdgesHelper = EdgesHelper; |
| 41809 | + exports.WireframeHelper = WireframeHelper; |
41840 | 41810 | exports.GeometryUtils = GeometryUtils;
|
41841 | 41811 | exports.ImageUtils = ImageUtils;
|
41842 | 41812 | exports.Projector = Projector;
|
|
0 commit comments