Skip to content

Commit

Permalink
fix: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AngyDev committed Apr 4, 2022
1 parent f9a34e7 commit 08804f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
15 changes: 1 addition & 14 deletions client/src/components/Offset/Offset.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function Offset({ mesh }) {
const newGeometry = new THREE.BufferGeometry();
newGeometry.setAttribute("position", new THREE.BufferAttribute(position, 3));

const newMaterial = new THREE.PointsMaterial({ color: 0xff0000, size: 1 });
const newMaterial = new THREE.PointsMaterial({ color: 0xff0000, size: 2 });
const mesh2 = new THREE.Points(newGeometry, newMaterial);
// const mesh2 = new THREE.Mesh(newGeometry, newMaterial);
mesh2.position.set(meshToOffset.position.x, meshToOffset.position.y, meshToOffset.position.z);
Expand All @@ -57,19 +57,6 @@ export default function Offset({ mesh }) {
}
};

/**
* Gets the center of the mesh to offset
* @param {Mesh} meshToOffset The mesh to apply the offset
* @returns The center of the mesh
*/
const getMeshCenter = (meshToOffset) => {
const center = new THREE.Vector3();
const box3 = new THREE.Box3().setFromObject(meshToOffset);
box3.getCenter(center);

return center;
};

/**
* Calcuates the offset of the mesh
* @param {BufferGeometry} geometry The geometry of the mesh to offset
Expand Down
7 changes: 1 addition & 6 deletions client/src/components/Paint/Paint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from "react";
import React, { useEffect } from "react";
import Button from "../Button/Button";
import brushIcon from "../../assets/images/icons/brush-solid.svg";
import * as THREE from "three";
Expand Down Expand Up @@ -190,11 +190,6 @@ export default function Paint() {
}
};

// const pointerWheel = (event) => {
// params.size += event.deltaY * 0.5;
// params.size = Math.max(Math.min(params.size, 4), 0.5);
// }

const changeBrushSize = (event) => {
const { value } = event.target;
params.size = value;
Expand Down

0 comments on commit 08804f6

Please sign in to comment.