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.

123456789101112131415161718192021
  1. import {Object3D} from 'three'
  2. import {iObjectCommons} from '../../core'
  3. /**
  4. * @deprecated use {@link IObject3D.autoCenter} instead, or {@link iObjectCommons.autoCenter}
  5. * @param obj
  6. */
  7. export function autoCenterObject3D(obj: Object3D) {
  8. return iObjectCommons.autoCenter.call(obj)
  9. }
  10. /**
  11. * @deprecated use {@link IObject3D.autoScale} instead, or {@link iObjectCommons.autoScale}
  12. * @param obj
  13. * @param autoScaleRadius
  14. * @param isCentered
  15. * @param setDirty
  16. */
  17. export function autoScaleObject3D(obj: Object3D, autoScaleRadius?: number, isCentered?: boolean, setDirty?: boolean) {
  18. return iObjectCommons.autoScale.call(obj, autoScaleRadius, isCentered, setDirty)
  19. }