forked from mirror/ObjToSchematic
Removed unused imports
This commit is contained in:
parent
5c293e703d
commit
fd3330b383
@ -1,11 +1,10 @@
|
||||
import { RenderBuffer, AttributeData } from './buffer';
|
||||
import { AttributeData } from './buffer';
|
||||
import { AppConstants } from './constants';
|
||||
import { GeometryTemplates } from './geometry';
|
||||
import { HashMap } from './hash_map';
|
||||
import { Mesh } from './mesh';
|
||||
import { OcclusionManager } from './occlusion';
|
||||
import { TextureFiltering } from './texture';
|
||||
import { ASSERT, Bounds, RGB } from './util';
|
||||
import { Bounds, RGB } from './util';
|
||||
import { Vector3 } from './vector';
|
||||
|
||||
export interface Voxel {
|
||||
|
@ -6,7 +6,6 @@ import { Triangle, UVTriangle } from '../triangle';
|
||||
import { Bounds, RGB, UV } from '../util';
|
||||
import { Vector3 } from '../vector';
|
||||
import { IVoxeliser } from './base-voxeliser';
|
||||
import { DebugGeometryTemplates } from '../geometry';
|
||||
|
||||
/**
|
||||
* This voxeliser works by projecting rays onto each triangle
|
||||
@ -54,9 +53,7 @@ export class NormalCorrectedRayVoxeliser extends IVoxeliser {
|
||||
|
||||
rayList.forEach((ray) => {
|
||||
const intersection = rayIntersectTriangle(ray, triangle.v0, triangle.v1, triangle.v2);
|
||||
if (intersection) {
|
||||
const intersectionWorld = Vector3.divScalar(intersection, this._scale);
|
||||
|
||||
if (intersection) {
|
||||
// Move transition away from normal
|
||||
const norm = normals.v0.normalise();
|
||||
intersection.sub(Vector3.mulScalar(norm, 0.5));
|
||||
|
@ -6,7 +6,6 @@ import { Triangle, UVTriangle } from '../triangle';
|
||||
import { Bounds, RGB, UV } from '../util';
|
||||
import { Vector3 } from '../vector';
|
||||
import { IVoxeliser } from './base-voxeliser';
|
||||
import { DebugGeometryTemplates } from '../geometry';
|
||||
|
||||
/**
|
||||
* This voxeliser works by projecting rays onto each triangle
|
||||
|
Loading…
Reference in New Issue
Block a user