Rebar intersection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How to I detect if 2 rebars (of the same host) intersect with each other? My rebars can be of any shape, any layout rule (but ideally their layout rule should not be "Single").
I have been tackling this problem for a few days, tried almost anything I can think of:
1. "JoinGeometryUtils": It can not detect if rebars are "joined" since it only works with solid element. Unfortunately, rebar is not a solid element. It is written in the documentation.
2. Try to use "BuiltInFailure" with a Rebar overlapped definition: 2 rebars are considered overlapped only if they are of the same RebarBarType, the same RebarShape, the same dimension, and the same location. not even close to what I need.
3. Try to manually determine intersection by using Driving curve of the 2 rebars, and I encounter 2 more problems:
a. Even when I place to straight standard bars so that the 2 rebars completely overlap each other, their driving curves somehow always return a "Disjoin" result. Only when I select the same curve twice, I received the "Equal" result.
b. I haven't try this with every layout rule but it seems to me that only rules with specific number (such as "Fixed number") that I can use GetBarPositionTransform() to get all the curves for the bars. The other layout rules (such as "Maximum spacing") always return NumberOfBarPositions and Quantity as 1.
What have I done wrong? Is there a way to detect rebar intersection? Thank you all for your time.