Implement arrangement framework for node groups
- Introduced `frames.py` to manage field complex calculations and their arrangement within node groups. - Added functionality to create and remove field frames based on node arrangements. - Developed `passages.py` to find unobstructed paths for connections around calculation frames. - Implemented `references.py` to route shared results on peripheral tracks, ensuring efficient distribution of outputs. - Created `sections.py` to reserve space for field calculations adjacent to geometry consumers. - Added `sources.py` to position shared calculation sources effectively beside their distribution channels. - Enhanced outline smoothing with `outline_smoothing.py` to adapt camera depth along original outlines.
This commit is contained in:
@@ -11,7 +11,7 @@ from tools.nodes.groups.image_depth_panorama import build_image_depth_panorama_g
|
||||
from tests.support.nodes import validate_node_structure
|
||||
|
||||
|
||||
def panorama(depth=3, alpha=1, subdivide=3, reference=3):
|
||||
def panorama(depth=3, alpha=1, subdivide=3):
|
||||
bpy.ops.wm.read_factory_settings(use_empty=True)
|
||||
group = build_image_depth_panorama_group()
|
||||
assert group.name == "O Image Depth Panorama"
|
||||
@@ -34,7 +34,7 @@ def panorama(depth=3, alpha=1, subdivide=3, reference=3):
|
||||
obj.update_tag(refresh={"DATA"})
|
||||
bpy.context.view_layer.update()
|
||||
|
||||
for name, value in (("Depth Image", image), ("Subdivide", subdivide), ("Reference Distance", reference)):
|
||||
for name, value in (("Depth Image", image), ("Subdivide", subdivide)):
|
||||
set_value(name, value)
|
||||
set_value("Boundary Smooth", 0)
|
||||
return obj, set_value
|
||||
@@ -190,7 +190,7 @@ def test_split_strength_and_distance_scale_invariance():
|
||||
depth[:, 64:] = 7
|
||||
signatures = []
|
||||
for scale in (0.01, 1, 100):
|
||||
obj, set_value = panorama(depth * scale, reference=3 * scale)
|
||||
obj, set_value = panorama(depth * scale)
|
||||
counts = []
|
||||
for split in (0, 0.1, 0.5, 1):
|
||||
set_value("Split Threshold", split)
|
||||
|
||||
Reference in New Issue
Block a user