What happed to Section view's ViewCoordinate

What happed to Section view's ViewCoordinate

KM_Yotsuha
Advocate Advocate
257 Views
1 Reply
Message 1 of 2

What happed to Section view's ViewCoordinate

KM_Yotsuha
Advocate
Advocate

The API doc says that when Create a section view ,the view's coordinate is left-handed:

KM_Yotsuha_0-1663918964487.png

but when the view is created, it's view coordinate is right handed:

KM_Yotsuha_1-1663919007265.png

 

why is that?  Is section view's ViewDirection finally produced by ViewRight CrossProduct ViewUp?

 

0 Likes
Accepted solutions (1)
258 Views
1 Reply
Reply (1)
Message 2 of 2

RPTHOMAS108
Mentor
Mentor
Accepted solution

I think that it is just a convoluted way of saying that you define the section bounding box with Basis.Z away from the viewer but end up with a view direction that is opposite to that. At least that seems to work on the most recent example I have. Otherwise you have to define a transform origin remote from the section line to represent the view depth or have a negative value for view depth (in terms of bounding box Z limits).

 

I also find that if you keep the transform to the input box right-handed i.e. by negating the right direction (with Z still away from viewer and Y up) then that also works and at no point is anything left-handed in that scenario.

 

There was a recent post I meant to answer where someone asked why the crop box used as an input to a new section reversed the section, so I believe that is why. Although the old API documentation says: "Usually, another view‘s crop box is used as the parameter" in relation to the ViewSection.Create parameter that takes a BoundingBoxXYZ. So I don't know if that is wrong or I am.

 

It is usually one of those things you figure out through trial and error and then forget about until the next time you need it. Either way at least you know it will be consistent in terms of the input required.