threepipe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WireframeGeometry3.ts 1019B

1234567891011121314151617181920212223
  1. import {
  2. BufferGeometry,
  3. NormalBufferAttributes,
  4. NormalOrGLBufferAttributes,
  5. } from 'three'
  6. import type {IGeometry, IGeometryEventMap, IGeometryUserData} from '../IGeometry'
  7. import {WireframeGeometry2} from 'three/examples/jsm/lines/WireframeGeometry2'
  8. import {iGeometryCommons} from './iGeometryCommons'
  9. import type {IObject3D} from '../IObject'
  10. export class WireframeGeometry3<Attributes extends NormalOrGLBufferAttributes = NormalBufferAttributes, TE extends IGeometryEventMap = IGeometryEventMap> extends WireframeGeometry2<Attributes, TE> implements IGeometry<Attributes, TE> {
  11. assetType: 'geometry' // dont set the value here since its checked in upgradeGeometry
  12. center2 = iGeometryCommons.center2
  13. setDirty = iGeometryCommons.setDirty
  14. refreshUi = iGeometryCommons.refreshUi
  15. appliedMeshes = new Set<IObject3D>()
  16. declare userData: IGeometryUserData
  17. constructor(geometry: BufferGeometry) {
  18. super(geometry)
  19. iGeometryCommons.upgradeGeometry.call(this)
  20. }
  21. }