synthpic2.recipe.synth_chain

Module for SynthChain and _SynthChainStep (sub-)classes.

Subpackages

Submodules

Package Contents

Classes

InvokeBlueprints

SynthChainStep to invoke a set of blueprints.

RelaxCollisions

SynthChainStep to relax collisions between objects of a set, using Blenders

TriggerFeatureUpdate

SynthChainStep to update a feature of a set of objects according to a feature

State

Class to handle blender states.

SynthChain

Class to orchestrate the feature generation and the rendering.

class synthpic2.recipe.synth_chain.InvokeBlueprints

Bases: synthpic2.recipe.synth_chain.feature_generation_steps.set_based_mixin.SetBasedMixin, synthpic2.recipe.synth_chain.feature_generation_steps.base.FeatureGenerationStep

SynthChainStep to invoke a set of blueprints.

__call__(runtime_state: synthpic2.recipe.synth_chain.state.RuntimeState) synthpic2.recipe.synth_chain.state.RuntimeState

NotImplemented

class synthpic2.recipe.synth_chain.RelaxCollisions

Bases: synthpic2.recipe.synth_chain.feature_generation_steps.set_based_mixin.SetBasedMixin, synthpic2.recipe.synth_chain.feature_generation_steps.base.FeatureGenerationStep

SynthChainStep to relax collisions between objects of a set, using Blenders bullet physics engine.

damping: float | None
angular_damping: float | None
linear_damping: float | None
friction: float = 1
restitution: float = 1
mass: float = 1.0
collision_shape: str = 'MESH'
mesh_source: str = 'FINAL'
num_frames: int = 100
use_gravity: bool = False
gravity: Tuple[float, float, float] = (0, 0)
collision_margin: float = 1e-06
time_scale: float = 1.0
substeps_per_frame: int = 10
solver_iterations: int = 10
dry_run: bool = False
__call__(runtime_state: synthpic2.recipe.synth_chain.state.RuntimeState) synthpic2.recipe.synth_chain.state.RuntimeState

NotImplemented

class synthpic2.recipe.synth_chain.TriggerFeatureUpdate

Bases: synthpic2.recipe.synth_chain.feature_generation_steps.set_based_mixin.SetBasedMixin, synthpic2.recipe.synth_chain.feature_generation_steps.base.FeatureGenerationStep

SynthChainStep to update a feature of a set of objects according to a feature variability.

feature_variability_name: str
__attrs_post_init__() None
__call__(runtime_state: synthpic2.recipe.synth_chain.state.RuntimeState) synthpic2.recipe.synth_chain.state.RuntimeState

NotImplemented

class synthpic2.recipe.synth_chain.State

Bases: synthpic2.recipe.registries.SelfRegisteringAttrsMixin

Class to handle blender states.

property _registry: synthpic2.recipe.registries.Registry
runtime_state: RuntimeState
name: str | None
file_root: synthpic2.custom_types.AnyPath | None
__attrs_post_init__() None
save_to_disk() None
load_from_disk() None
delete() None
unregister() None
class synthpic2.recipe.synth_chain.SynthChain

Class to orchestrate the feature generation and the rendering.

_target_: str = 'synthpic2.recipe.SynthChain'
blender_log_file_name: str = 'blender.log'
feature_generation_steps: List
rendering_steps: List
execute(initial_runtime_state: synthpic2.recipe.synth_chain.state.RuntimeState) None