mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 11:03:48 +01:00
fix thumbnail
This commit is contained in:
parent
655eaa0e65
commit
03d571f2a8
@ -10,7 +10,7 @@ import { shapeToPoints } from '../shape/shapeToPoints.js';
|
|||||||
import { SHAPE_TYPE_PROPERTIES } from '../constants/shapeTypeProperties.js';
|
import { SHAPE_TYPE_PROPERTIES } from '../constants/shapeTypeProperties.js';
|
||||||
import { LINE_WIDTH } from '../constants/exportConstants.js';
|
import { LINE_WIDTH } from '../constants/exportConstants.js';
|
||||||
import { bufferToBase64 } from '../utils/binaryUtils.js';
|
import { bufferToBase64 } from '../utils/binaryUtils.js';
|
||||||
import { IMAGE_TYPE, IMAGE_QUALIT } from 'doodle3d-core/constants/saveConstants.js';
|
import { IMAGE_TYPE, IMAGE_QUALIT } from '../constants/saveConstants.js';
|
||||||
import createScene from '../d3/createScene.js';
|
import createScene from '../d3/createScene.js';
|
||||||
|
|
||||||
const THREE_BSP = ThreeBSP(THREE);
|
const THREE_BSP = ThreeBSP(THREE);
|
||||||
@ -92,8 +92,6 @@ export function generateExportMesh(state, options = {}) {
|
|||||||
if (mesh instanceof THREE.Mesh && shapeData.solid) {
|
if (mesh instanceof THREE.Mesh && shapeData.solid) {
|
||||||
const { geometry, material } = mesh;
|
const { geometry, material } = mesh;
|
||||||
|
|
||||||
console.log('mesh: ', mesh);
|
|
||||||
|
|
||||||
let objectGeometry = geometry.clone();
|
let objectGeometry = geometry.clone();
|
||||||
objectGeometry.mergeVertices();
|
objectGeometry.mergeVertices();
|
||||||
objectGeometry.applyMatrix(objectMatrix.multiplyMatrices(state.spaces[shapeData.space].matrix, matrix));
|
objectGeometry.applyMatrix(objectMatrix.multiplyMatrices(state.spaces[shapeData.space].matrix, matrix));
|
||||||
|
Loading…
Reference in New Issue
Block a user