Page MenuHomeFeedback Tracker

[Feature Request] Return component index in lineIntersectsSurfaces to reliably get wall thickness
Closed, ResolvedPublic

Description

Can the component index be added to lineIntersectsSurfaces returned array?

With this change, the new returned arrays would be:

[pos, normal, proxy, parent, selections, bisurf, index]

The reason I ask is because when there are many intersections, it's difficult to say which intersections belong to the same part.

By "component index" I mean the "_forEachIndex" (iteration index) of:

  1. Convex Component for FIRE/GEOM/VIEW LODs (because they use convex components)
  2. Plane for ROADWAY LOD (though I don't care about this, because they have no thickness anyway, so you can just return -1 for this case)

E.g. let's say I want to know the thickness of a wall that is between points p1 and p2 and calculate a penetration value for it, so I perform 2 intersections, one p1-p2 and one p2-p1.

The problem is, if there are multiple intersections, I can't tell which one was the exit point. Also around sharp corners lineIntersectsSurfaces sometimes misses the exit/entry so I can't pair them up correctly. So getting the wall thickness is very unreliable right now.

A simple example in 2D, where you have 2 convex parts as rectangles:

And this example shows a missed intersection near that sharp corner which means you can't pair intersections anymore:

Details

Severity
Feature
Resolution
No Bug
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Additional Information

-closed on author's request-

Event Timeline

Leopard20 updated the task description. (Show Details)Sep 1 2022, 11:39 PM
Leopard20 updated the task description. (Show Details)Sep 1 2022, 11:41 PM
Leopard20 updated the task description. (Show Details)Sep 1 2022, 11:50 PM
Leopard20 updated the task description. (Show Details)Sep 2 2022, 12:00 AM
Leopard20 updated the task description. (Show Details)Sep 2 2022, 12:31 AM
LouMontana closed this task as Resolved.Sep 2 2022, 9:06 PM
LouMontana changed Resolution from Open to No Bug.
LouMontana edited Additional Information. (Show Details)