Patchwork 3D Enterprise 2021.1 X5

Surface Auto-Orientation

Three automatic orientation modes are available in the toolbar and from the Surface > Auto-Orientation menu:

Icon

Function

auto_orient_surfaces_1.png

Auto-orient visible surfaces

auto_orient_object_1.png

Auto-orient selected surfaces

auto_orient_object_interior_1.png

Auto-orient surfaces towards interior

auto_orient_surfaces_1.png Visible Surfaces: automatically orients all surfaces visible from the current point of view. In order to determine if the front or the rear face of a surface is visible from this point of view, a rendering is performed. The number of red pixels is compared to the number of pixels of another color among the visible pixels of the surface (i.e. pixels not occluded by another surface). If most pixels are red, the surface is considered to be inside out and its orientation is flipped.

Initially, some of the seat’s surfaces are inside out (left).
With the door closed (middle), some of these surfaces are not visible.
The auto-orientation function for visible surfaces is used (right): the inside out, non-visible surface retains its original orientation.

Example of the auto-orientation of visible surfaces function. Initially, some of the seat’s surfaces are inside out (left). With the door closed (middle), some of these surfaces are not visible. The auto-orientation function for visible surfaces is used (right): the inside out, non-visible surface retains its original orientation.

auto_orient_object_1.png Selected Surfaces: automatically orients a selection of surfaces. When a set of surfaces is selected, the function determines the corresponding bounding volume. Fourteen renderings of the selected surfaces are performed for camera positions spread around the bounding volume. If more red pixels than pixels of another color are visible for a given surface, this surface is considered to be inside out and its orientation is flipped.

Warning

Only visible pixels are taken into account. If a surface is completely occluded by another surface in the selection, it will never be reversed.

Initially, some of the seat’s surfaces are inside out (left).
All the surfaces of the seat are selected (top right).
All the surfaces of the seat are closed (bottom left).
The auto-orientation function for selected surfaces is used in order to orient the surface properly (bottom right).

Example of the auto-orientation of selected surfaces function. Initially, some of the seat’s surfaces are inside out (top left). All the surfaces of the seat are selected (top right), and the door closed (bottom left). The auto-orientation function for selected surfaces is used in order to orient the surface properly (bottom right).

image539.png
image540.png
image541.png
image542.png
image543.png
image544.png
image545.png
image546.png
image547.png
image548.png
image549.png
image550.png

The fourteen intermediate renderings of the selected surfaces performed for the example presented in the previous figure.
image552.png

The fourteen intermediate renderings of the selected surfaces performed for the example presented in the previous figure.

auto_orient_object_interior_1.png Surface towards Interior: automatically orients surfaces towards an interior volume. Six renderings taking all the surfaces in the scene into account are performed from the current camera position in the following directions: forward, backward, up, down, left and right. If more red pixels than pixels of another color are visible for a given surface, this surface is considered to be inside out and its orientation is flipped.

Warning

As for the auto-orientation function for Selected Surfaces, only visible pixels are taken into account. If a surface is completely occluded by another in the selection, it will never be reversed.

Example of the auto-orientation function for surface interiors on the 3D scene in the left image.
Example of the auto-orientation function for surface interiors on the 3D scene: the surfaces identified as inside out have been reversed in the right image.

Example of the auto-orientation function for surface interiors on the 3D scene in the left image: the surfaces identified as inside out have been reversed in the right image.

Renderings performed to identify the orientation of each surface with the auto-orientation function for surface interiors. Top: forward.
Renderings performed to identify the orientation of each surface with the auto-orientation function for surface interiors. Top: backward.
Renderings performed to identify the orientation of each surface with the auto-orientation function for surface interiors. Middle: up.
Renderings performed to identify the orientation of each surface with the auto-orientation function for surface interiors. Middle: down.
Renderings performed to identify the orientation of each surface with the auto-orientation function for surface interiors. Bottom: right.
Renderings performed to identify the orientation of each surface with the auto-orientation function for surface interiors. Bottom: right.

Renderings performed to identify the orientation of each surface with the auto-orientation function for surface interiors. Top: forward and backward. Middle: up and down. Bottom: left and right.