mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-08 17:33:15 +01:00
18 lines
No EOL
375 B
JavaScript
18 lines
No EOL
375 B
JavaScript
import {BoxGeometry, Mesh, SphereGeometry} from 'three';
|
|
|
|
export class SphereObject3D extends Mesh {
|
|
|
|
constructor(material) {
|
|
super(sphereGeometry, material);
|
|
}
|
|
}
|
|
|
|
export class BoxObject3D extends Mesh {
|
|
|
|
constructor(material) {
|
|
super(boxGeometry, material);
|
|
}
|
|
}
|
|
|
|
const sphereGeometry = new SphereGeometry( 1 );
|
|
const boxGeometry = new BoxGeometry( 1, 1, 1 ); |