Skip to content

IfcPointByDistanceExpression length along curve miscalculated #554

@CBenghi

Description

@CBenghi

Hello @andyward, @Ibrahim5aad,

I'm attaching a file that demonstrates a problematic behaviour with IFCPOINTBYDISTANCEEXPRESSION placement.

There are four IFCGRADIENTCURVEs in this demo model.
One of them (the roundabout in the center) is built out of two ifcCircle segments (see label 132), the others are a mix of ifcLine, ifcClothoid, and ifcCircle.

I have placed light poles at regular distance along them to help demonstrate.

When computing IfcPointByDistanceExpression, the length is computed as a parameter (radians) for the roundabout, but it's correctly interpreted as a distance (meters) for the others, even though they contain circle segments.

Image

inconsistentLengthTreatment.zip

I've investigated the problem a bit, but I'm not sure how to intervene in the code.
I'd be happy to to prepare a PR once we agree on the approach to take.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions