-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
61 changed files
with
1,787 additions
and
310 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-83.6 KB
assets/icon_pool/image_fx_a_pixel_art_game_icon__24x24__16bit__of_a(5).jpg
Binary file not shown.
Binary file removed
BIN
-88 KB
assets/icon_pool/image_fx_a_pixel_art_game_icon__24x24__16bit__of_t(1).jpg
Binary file not shown.
Binary file removed
BIN
-74.3 KB
assets/icon_pool/image_fx_a_pixel_art_game_icon__24x24__16bit__of_t(2).jpg
Binary file not shown.
Binary file removed
BIN
-136 KB
assets/icon_pool/image_fx_a_pixel_art_game_icon__24x24__16bit__of_t(3).jpg
Binary file not shown.
Binary file removed
BIN
-176 KB
assets/icon_pool/image_fx_a_pixel_art_game_icon__24x24__16bit__of_t(4).jpg
Binary file not shown.
Binary file removed
BIN
-108 KB
assets/icon_pool/image_fx_a_pixel_art_game_icon__24x24__16bit__of_t.jpg
Binary file not shown.
Binary file removed
BIN
-78 KB
assets/icon_pool/image_fx_a_pixel_art_game_icon__24x24__16bit_of_a(1).jpg
Binary file not shown.
Binary file removed
BIN
-76.1 KB
assets/icon_pool/image_fx_a_pixel_art_game_icon__24x24__16bit_of_a.jpg
Binary file not shown.
Binary file removed
BIN
-63.6 KB
assets/icon_pool/image_fx_a_pixel_art_game_icon__24x24__of_a_cloud(1).jpg
Binary file not shown.
Binary file removed
BIN
-62.1 KB
assets/icon_pool/image_fx_a_pixel_art_game_icon__24x24__of_a_floppy_d(1).jpg
Binary file not shown.
Binary file removed
BIN
-68 KB
assets/icon_pool/image_fx_a_pixel_art_game_icon__24x24__of_a_floppy_d.jpg
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Submodule eigen
updated
from f78dfe to 27f817
Submodule pybind11
updated
15 files
+35 −2 | .github/workflows/ci.yml | |
+7 −6 | .pre-commit-config.yaml | |
+3 −3 | docs/requirements.txt | |
+5 −1 | include/pybind11/detail/class.h | |
+12 −0 | include/pybind11/pybind11.h | |
+9 −1 | include/pybind11/pytypes.h | |
+3 −13 | pyproject.toml | |
+1 −1 | tests/CMakeLists.txt | |
+2 −0 | tests/pybind11_tests.cpp | |
+1 −0 | tests/pytest.ini | |
+4 −2 | tests/test_class.py | |
+7 −0 | tests/test_embed/CMakeLists.txt | |
+5 −2 | tests/test_kwargs_and_defaults.cpp | |
+3 −2 | tests/test_kwargs_and_defaults.py | |
+2 −1 | tests/test_pytypes.py |
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
Diff not rendered.
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,44 @@ | ||
#! python3 | ||
|
||
import System | ||
import typing | ||
|
||
import Rhino | ||
import Rhino.Geometry as rg | ||
import scriptcontext as sc | ||
|
||
from ghpythonlib.componentbase import executingcomponent as component | ||
|
||
import diffCheck | ||
from diffCheck.df_geometries import DFBeam, DFAssembly | ||
|
||
|
||
class DFBuildAssembly(component): | ||
def RunScript(self, | ||
i_assembly_name, | ||
i_breps : System.Collections.Generic.IList[Rhino.Geometry.Brep]): | ||
""" | ||
This component parse a series of breps representing a timber structure or a | ||
timber elements into a DFAssembly object. | ||
:param i_assembly_name: the name of the assembly | ||
:param i_breps: list of breps | ||
:return o_assembly: the DFAssembly object | ||
""" | ||
beams: typing.List[DFBeam] = [] | ||
for brep in i_breps: | ||
beam = DFBeam.from_brep_face(brep) | ||
beams.append(beam) | ||
|
||
o_assembly = DFAssembly(beams, i_assembly_name) | ||
|
||
return o_assembly | ||
|
||
|
||
# if __name__ == "__main__": | ||
# comp = DFBuildAssembly() | ||
# o_assembly = comp.RunScript( | ||
# i_assembly_name, | ||
# i_breps | ||
# ) |
Oops, something went wrong.
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,52 @@ | ||
{ | ||
"name": "DFBuildAssembly", | ||
"nickname": "DFBuildAssembly", | ||
"category": "diffCheck", | ||
"subcategory": "Structure", | ||
"description": "This component parse a series of breps representing a timber structure or a timber elements into a DFAssembly object.", | ||
"exposure": 4, | ||
"instanceGuid": "bf6f47fe-2a7e-47b5-b1c4-c716c524d245", | ||
"ghpython": { | ||
"hideOutput": true, | ||
"hideInput": true, | ||
"isAdvancedMode": true, | ||
"marshalOutGuids": true, | ||
"iconDisplay": 2, | ||
"inputParameters": [ | ||
{ | ||
"name": "i_assembly_name", | ||
"nickname": "i_assembly_name", | ||
"description": "The name of the assembly to export.", | ||
"optional": false, | ||
"allowTreeAccess": true, | ||
"showTypeHints": true, | ||
"scriptParamAccess": "item", | ||
"wireDisplay": "default", | ||
"sourceCount": 0, | ||
"typeHintID": "str" | ||
}, | ||
{ | ||
"name": "i_breps", | ||
"nickname": "i_breps", | ||
"description": "The breps of the structure.", | ||
"optional": true, | ||
"allowTreeAccess": true, | ||
"showTypeHints": true, | ||
"scriptParamAccess": "list", | ||
"wireDisplay": "default", | ||
"sourceCount": 0, | ||
"typeHintID": "brep" | ||
} | ||
], | ||
"outputParameters": [ | ||
{ | ||
"name": "o_assembly", | ||
"nickname": "o_assembly", | ||
"description": "The create DFAssembly object representing the timber elements.", | ||
"optional": false, | ||
"sourceCount": 0, | ||
"graft": false | ||
} | ||
] | ||
} | ||
} |
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,35 @@ | ||
#! python3 | ||
|
||
import System | ||
import typing | ||
|
||
import Rhino | ||
import Rhino.Geometry as rg | ||
import scriptcontext as sc | ||
|
||
from ghpythonlib.componentbase import executingcomponent as component | ||
|
||
import diffCheck | ||
from diffCheck.df_geometries import DFBeam, DFAssembly | ||
|
||
|
||
class DFDeconstructAssembly(component): | ||
def RunScript(self, | ||
i_assembly): | ||
""" | ||
Deconstruct the DFAssembly into a set of df_beams objects. | ||
:param i_assembly: the DFAssembly object | ||
:return o_beams | ||
""" | ||
o_beams = i_assembly.beams | ||
|
||
return o_beams | ||
|
||
|
||
# if __name__ == "__main__": | ||
# comp = DFDeconstructAssembly() | ||
# o_beams = comp.RunScript( | ||
# i_assembly | ||
# ) |
Oops, something went wrong.
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,40 @@ | ||
{ | ||
"name": "DFDeconstructAssembly", | ||
"nickname": "DFDeconstructAssembly", | ||
"category": "diffCheck", | ||
"subcategory": "Structure", | ||
"description": "Deconstruct the DFAssembly into a set of df_beams objects.", | ||
"exposure": 4, | ||
"instanceGuid": "43098147-78a1-41ce-863d-e48337cb8cd5", | ||
"ghpython": { | ||
"hideOutput": true, | ||
"hideInput": true, | ||
"isAdvancedMode": true, | ||
"marshalOutGuids": true, | ||
"iconDisplay": 2, | ||
"inputParameters": [ | ||
{ | ||
"name": "i_assembly", | ||
"nickname": "i_assembly", | ||
"description": "The DFAssembly object to deconstruct.", | ||
"optional": false, | ||
"allowTreeAccess": true, | ||
"showTypeHints": true, | ||
"scriptParamAccess": "item", | ||
"wireDisplay": "default", | ||
"sourceCount": 0, | ||
"typeHintID": "ghdoc" | ||
} | ||
], | ||
"outputParameters": [ | ||
{ | ||
"name": "o_beams", | ||
"nickname": "o_beams", | ||
"description": "The set of beams contained by this DFAssembly object.", | ||
"optional": false, | ||
"sourceCount": 0, | ||
"graft": false | ||
} | ||
] | ||
} | ||
} |
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,41 @@ | ||
#! python3 | ||
|
||
import System | ||
import typing | ||
|
||
import Rhino | ||
import Rhino.Geometry as rg | ||
import scriptcontext as sc | ||
|
||
from ghpythonlib.componentbase import executingcomponent as component | ||
|
||
import diffCheck | ||
from diffCheck.df_geometries import DFBeam, DFAssembly | ||
|
||
|
||
class DFDeconstructBeam(component): | ||
def RunScript(self, | ||
i_beams : typing.List[DFBeam]): | ||
""" | ||
Deconstruct the DFBeam object into Rhino objects. | ||
:param i_beams: the DFBeam objects | ||
:return o_side_faces: the side joints of the beam | ||
:return o_joint_faces: the face joints of the beam | ||
:return o_joint_ids: the ids for each face joint | ||
""" | ||
o_side_faces, o_joint_faces, o_joint_ids, o_breps = [], [], [], [] | ||
|
||
for i_b in i_beams: | ||
o_side_faces = [f.to_brep_face() for f in i_b.side_faces] | ||
o_joint_faces = [f.to_brep_face() for f in i_b.joint_faces] | ||
o_joint_ids = [f.joint_id for f in i_b.joint_faces] | ||
|
||
return o_side_faces, o_joint_faces, o_joint_ids | ||
|
||
# if __name__ == "__main__": | ||
# comp = DFDeconstructBeam() | ||
# o_side_faces, o_joint_faces, o_joint_ids = comp.RunScript( | ||
# i_beams | ||
# ) |
Oops, something went wrong.
Oops, something went wrong.