Skip to content

Place compartments in scene as ingredients #73

@meganrm

Description

@meganrm

Use Case

For nesting compartments in new schema, we want to be able to pack them with the same collision detection as we do with ingredients.

Solution

We need to detangle the code.

Steps:

  1. Create ingredients and create compartments (should a compartment be a attribute of an ingredient?)
  2. create recipes
  3. calculate volume of each compartment, and each compartment needs to know it's children
  4. calculate the available volume of each compartment, ie env bounding box minus the volume of any children compartments
  5. set counts for all objects
  6. Build only environment grid
  7. place any compartments that are children of the grid
  8. build the children compartments
  9. Iterate through nested compartments until all are placed
  10. Pack non compartment ingredients

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions