Skip to content

util.representation.ClippingInfo creates invalid IfcAxis2Placement3D #4052

@brunopostle

Description

@brunopostle

This line creates an IfcAxis2Placement3D with a Location, an Axis, but no RefDirection:

        axis_placement = file.createIfcAxis2Placement3D(location, direction, None)

This is generating validation errors for me:

On instance:
    #1818=IfcAxis2Placement3D(#1816,#1817,$)
Rule IfcAxis2Placement3D.AxisAndRefDirProvision:
    (not exists(axis) ^ exists(refdirection))
Violated by:
    not (True ^ False)
     +  where True = exists(#1817=IfcDirection((-0.707106781186547,0.,0.707106781186547)))
     +  and   False = exists(None)

Which I think means that you are not supposed to have an Axis without a RefDirection.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions