Changes between Initial Version and Version 1 of Ticket #19959


Ignore:
Timestamp:
Mar 10, 2026, 12:19:14 PM (5 hours ago)
Author:
Tom Goddard
Comment:

Fixed.

I made the "clip list" command log the clip commands needed to restore the clip planes. For near/far planes the logged clip commands will only restore the correct planes if the camera view direction is the same. For front/back planes the clip planes will restore even if the camera view direction and camera placement is different.

The former "clip list" output was confusing because the axis was reported in scene coordinates but the default axis option of the clip command uses screen coordinates if the coordinateSystem option is not given.

The clip command behavior is also pretty weird in that the axis argument uses screen coordinates if a 3-tuple of numbers is given, but the position argument uses scene coordinates of a 3-tuple of numbers is given, assuming coordinateSystem is not specified. If coordinateSystem is specified than both the axis and position arguments use the specified coordinate if they are given as 3-tuples of numbers.

Here is what the "clip list" output looks like now:

clip list

Using 2 clip planes: clip front 0 axis -0.963,0.070,-0.259 position 131.7,140.7,160 coordinateSystem scene clip back 0 axis 0.963,-0.070,0.259 position 112,142.1,154.7 coordinateSystem scene

There is a separate clip command for each plane. In the log these clip commands are executable links.

Legend:

Unmodified
Added
Removed
Modified