remove logs

This commit is contained in:
wass08
2026-01-26 18:20:18 +09:00
parent d4c3fe2afb
commit f244f864ba
2 changed files with 0 additions and 31 deletions
@@ -194,12 +194,6 @@ function calculateJunctionIntersections(
// Sort by outgoing angle
processedWalls.sort((a, b) => a.angle - b.angle)
console.log(`\n=== Junction at (${meetingPoint.x.toFixed(2)}, ${meetingPoint.y.toFixed(2)}) ===`)
console.log('Walls sorted by angle:')
for (const w of processedWalls) {
console.log(` ${w.wallId}: angle=${((w.angle * 180) / Math.PI).toFixed(1)}°${w.isPassthrough ? ' (passthrough)' : ''}`)
}
const wallIntersections = new Map<string, { left?: Point2D; right?: Point2D }>()
const n = processedWalls.length
@@ -215,7 +209,6 @@ function calculateJunctionIntersections(
// If lines are parallel (det ≈ 0), skip this intersection - walls will use defaults
if (Math.abs(det) < 1e-9) {
console.log(`Intersection ${i}: wall1=${wall1.wallId}.edgeA ∩ wall2=${wall2.wallId}.edgeB = PARALLEL (skipped)`)
continue
}
@@ -224,12 +217,9 @@ function calculateJunctionIntersections(
y: (wall2.edgeB.a * wall1.edgeA.c - wall1.edgeA.a * wall2.edgeB.c) / det,
}
console.log(`Intersection ${i}: wall1=${wall1.wallId}.edgeA ∩ wall2=${wall2.wallId}.edgeB = (${p.x.toFixed(3)}, ${p.y.toFixed(3)})`)
// Only assign intersection to non-passthrough walls
// Passthrough walls don't receive junction data (their geometry doesn't change)
if (!wall1.isPassthrough) {
console.log(` -> ${wall1.wallId}.left = p`)
if (!wallIntersections.has(wall1.wallId)) {
wallIntersections.set(wall1.wallId, {})
}
@@ -237,7 +227,6 @@ function calculateJunctionIntersections(
}
if (!wall2.isPassthrough) {
console.log(` -> ${wall2.wallId}.right = p`)
if (!wallIntersections.has(wall2.wallId)) {
wallIntersections.set(wall2.wallId, {})
}
@@ -245,11 +234,6 @@ function calculateJunctionIntersections(
}
}
console.log('Final wall intersections:')
for (const [id, data] of wallIntersections) {
console.log(` ${id}: left=(${data.left?.x.toFixed(3)}, ${data.left?.y.toFixed(3)}), right=(${data.right?.x.toFixed(3)}, ${data.right?.y.toFixed(3)})`)
}
return wallIntersections
}
@@ -154,12 +154,6 @@ export function generateExtrudedWall(
const startJunction = junctionData.get(keyStart)?.get(wallNode.id)
const endJunction = junctionData.get(keyEnd)?.get(wallNode.id)
console.log(`\n=== Wall ${wallNode.id} ===`)
console.log('Start:', wallStart, 'End:', wallEnd, 'Thickness:', thickness)
console.log('Key start:', keyStart, 'Key end:', keyEnd)
console.log('Start junction data:', startJunction)
console.log('End junction data:', endJunction)
// Calculate polygon corners in world coordinates (exactly like demo)
// p_start_L = left side at start
// p_start_R = right side at start
@@ -187,12 +181,6 @@ export function generateExtrudedWall(
y: wallEnd.y - nUnit.y * halfT,
}
console.log('Polygon corners (world coords):')
console.log(' p_start_L:', p_start_L, startJunction ? '(from junction)' : '(default)')
console.log(' p_start_R:', p_start_R, startJunction ? '(from junction)' : '(default)')
console.log(' p_end_L:', p_end_L, endJunction ? '(from junction, swapped)' : '(default)')
console.log(' p_end_R:', p_end_R, endJunction ? '(from junction, swapped)' : '(default)')
// Build polygon points (exactly like demo)
// Order: start-right -> end-right -> [end center] -> end-left -> start-left -> [start center]
const polyPoints: Point2D[] = [p_start_R, p_end_R]
@@ -204,9 +192,6 @@ export function generateExtrudedWall(
polyPoints.push(wallStart) // Add center vertex at junction
}
console.log('Polygon order:', polyPoints.length, 'points')
console.log(' Has end junction:', !!endJunction, '| Has start junction:', !!startJunction)
// Transform world coordinates to wall-local coordinates
// Wall-local: x along wall, z perpendicular (thickness direction)
const wallAngle = Math.atan2(v.y, v.x)