EdgeSplitModifier.d.ts 791 B

12345678910111213141516171819202122
  1. import { BufferGeometry, Geometry } from '../../../src/Three';
  2. export class EdgeSplitModifier {
  3. constructor();
  4. /**
  5. * @param geometry The geometry to modify by splitting edges.
  6. * This geometry can be any of any type: Geometry or BufferGeometry, indexed or
  7. * not...
  8. *
  9. * @param cutOffPoint The cutoff angle in radians. If the angle between two face normals is higher
  10. * than this value, a split will be made.
  11. *
  12. * @param [tryKeepNormals = true] Set to true to keep the normal values for vertices that won't be split.
  13. * To use this feature, you also need to pass an indexed geometry with a 'normal'
  14. * BufferAttribute.
  15. */
  16. modify( geometry: Geometry, cutOffPoint: number, tryKeepNormals: boolean ): BufferGeometry;
  17. }