Skip to content

Reused components are scaled incorrectly when using IfcAxis2Placement3D #1381

@muren400

Description

@muren400

When geometries are being reused by mapping and placed using IfcAxis2Placement3D, they might be scaled incorrectly if Axis or RefDirection aren't normalized vectors.

DirectionRatios for axis and direction needs to be normalized here:

List<Double> axisDirectionRatios = (List<Double>) axis.get("DirectionRatios");
List<Double> directionDirectionRatios = (List<Double>) direction.get("DirectionRatios");

Can't share the model this happened with, but I can try to recreate a simple example with two cubes.
Axis and RefDirection looked like this:
#50313=IFCDIRECTION((0.,0.,110.))

Metadata

Metadata

Assignees

No one assigned

    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