Skip to content

Commit

Permalink
change extended to true (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrm authored Mar 19, 2024
1 parent b9a6c37 commit bde01cb
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cellpack/autopack/Compartment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ def BuildGrid_trimesh(

off_grid_surface_points = surface_points_in_bounding_box

ex = False # True if nbGridPoints == len(idarray) else False
ex = True # True if nbGridPoints == len(idarray) else False

surfacePoints, surfacePointsNormals = self.extendGridArrays(
nbGridPoints,
Expand Down
2 changes: 1 addition & 1 deletion examples/packing-configs/debug.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "debug",
"format": "simularium",
"inner_grid_method": "raytrace",
"inner_grid_method": "trimesh",
"live_packing": false,
"ordered_packing": false,
"out": "out/",
Expand Down
7 changes: 5 additions & 2 deletions examples/recipes/v2/nested.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"type": "single_sphere",
"jitter_attempts": 10,
"packing_mode": "random",
"place_method": "jitter",
"available_regions": {
"interior": {},
"surface": {}
Expand Down Expand Up @@ -84,7 +83,11 @@
"object": "red_sphere",
"count": 40
}
]
],
"surface": [{
"object": "green_sphere",
"count": 40
}]
}
},
"inner_sphere": {
Expand Down
88 changes: 88 additions & 0 deletions examples/recipes/v2/spheres_in_a_box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"version": "1.0.0",
"format_version": "2.0",
"name": "analysis_b",
"bounding_box": [
[
0,
0,
0
],
[
1000,
1000,
1000
]
],
"objects": {
"base": {
"type": "single_sphere"

},
"sphere_100": {
"type": "single_sphere",
"inherit": "base",
"color": [
0.498,
0.498,
0.498
],
"radius": 100
},
"sphere_200": {
"type": "single_sphere",
"inherit": "base",
"color": [
0.827,
0.82700002,
0.82700002
],
"radius": 200
},
"sphere_50": {
"type": "single_sphere",
"inherit": "base",
"color": [
0.306,
0.45100001,
0.81599998
],
"radius": 50
},
"sphere_25": {
"type": "single_sphere",
"inherit": "base",
"color": [
0.467,
0.23899999,
0.972
],
"radius": 25
}
},
"composition": {
"space": {
"regions": {
"interior": [
"A", "B", "C", "D"
]
}
},
"A": {
"object": "sphere_100",
"count": 6
},
"B": {
"object": "sphere_200",
"count": 2
},
"C": {
"object": "sphere_50",
"count": 15
},
"D": {
"object": "sphere_25",
"count": 40
}
}
}

0 comments on commit bde01cb

Please sign in to comment.