-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d431f9
commit 05a35dc
Showing
10 changed files
with
78 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# infinigen.assets.scatters.coral_reef # too slow for unit tests | ||
infinigen.assets.scatters.chopped_trees | ||
infinigen.assets.scatters.clothes | ||
infinigen.assets.scatters.decorative_plants | ||
infinigen.assets.scatters.fern | ||
infinigen.assets.scatters.flowerplant | ||
infinigen.assets.scatters.grass | ||
infinigen.assets.scatters.ground_leaves | ||
infinigen.assets.scatters.ground_mushroom | ||
infinigen.assets.scatters.ground_twigs | ||
infinigen.assets.scatters.ivy | ||
infinigen.assets.scatters.jellyfish | ||
infinigen.assets.scatters.lichen | ||
infinigen.assets.scatters.mollusk | ||
infinigen.assets.scatters.monocots | ||
infinigen.assets.scatters.moss | ||
infinigen.assets.scatters.mushroom | ||
infinigen.assets.scatters.pebbles | ||
infinigen.assets.scatters.pine_needle | ||
infinigen.assets.scatters.pinecone | ||
infinigen.assets.scatters.seashells | ||
infinigen.assets.scatters.seaweed | ||
infinigen.assets.scatters.slime_mold | ||
infinigen.assets.scatters.snow_layer | ||
infinigen.assets.scatters.urchin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright (c) Princeton University. | ||
# This source code is licensed under the BSD 3-Clause license found in the LICENSE file in the root directory | ||
# of this source tree. | ||
|
||
# Authors: Alexander Raistrick | ||
|
||
import pytest | ||
|
||
from infinigen.core.util import blender as butil | ||
from infinigen_examples.util.test_utils import import_item, load_txt_list, setup_gin | ||
|
||
|
||
def check_scatter_runs(pathspec): | ||
butil.clear_scene() | ||
base_cube = butil.spawn_cube() | ||
|
||
scatter = import_item(pathspec) | ||
scatter.apply(base_cube) | ||
|
||
|
||
@pytest.mark.parametrize("pathspec", load_txt_list("tests/assets/list_scatters.txt")) | ||
def test_scatter_runs(pathspec, **kwargs): | ||
setup_gin("infinigen_examples/configs_nature", ["base_nature.gin"]) | ||
check_scatter_runs(pathspec) |