-
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.
WIP-ADD: working binding with renamed
- Loading branch information
Showing
26 changed files
with
807 additions
and
4,754 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
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.
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.
Binary file not shown.
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,2 @@ | ||
REM configure the project | ||
cmake -S . -B build |
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 |
---|---|---|
@@ -1,5 +1,2 @@ | ||
@echo off | ||
setlocal | ||
|
||
REM build the project in Release mode | ||
cmake --build build --config Release |
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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
@echo off | ||
setlocal | ||
|
||
REM activate the conda diff_check environment otherwise the python wrap won't work | ||
call cmake/activate_conda.bat | ||
|
||
REM configure the project | ||
cmake -S . -B build -A x64 | ||
cmake -S . -B build |
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,28 @@ | ||
#! python3 | ||
|
||
import System | ||
|
||
import Rhino | ||
import Rhino.Geometry as rg | ||
from ghpythonlib.componentbase import executingcomponent as component | ||
|
||
import Grasshopper as gh | ||
from Grasshopper.Kernel import GH_RuntimeMessageLevel as RML | ||
|
||
import diffCheck | ||
from diffCheck import diffcheck_bindings | ||
|
||
class DFBindTester(component): | ||
def RunScript(self): | ||
""" | ||
The component test and import bind module for diffCheck. | ||
""" | ||
ghenv.Component.Message = f"diffCheck v: {diffCheck.__version__}" | ||
is_binding_imported = diffcheck_bindings.dfb_test.test() | ||
|
||
if not is_binding_imported: | ||
ghenv.Component.AddRuntimeMessage(RML.Warning, "Bindings not imported.") | ||
else: | ||
ghenv.Component.AddRuntimeMessage(RML.Remark, "Bindings imported.") | ||
|
||
return is_binding_imported |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,27 @@ | ||
{ | ||
"name": "DFBindTester", | ||
"nickname": "BindT", | ||
"category": "diffCheck", | ||
"subcategory": "Utility", | ||
"description": "This component is testing the binding import of diffCheck.", | ||
"exposure": 4, | ||
"instanceGuid": "7a600924-29bb-4682-8b95-a37752cefdbc", | ||
"ghpython": { | ||
"hideOutput": true, | ||
"hideInput": true, | ||
"isAdvancedMode": true, | ||
"marshalOutGuids": true, | ||
"iconDisplay": 2, | ||
"inputParameters": [], | ||
"outputParameters": [ | ||
{ | ||
"name": "o_is_imported", | ||
"nickname": "o_is_imported", | ||
"description": "True if the import of the diffCheck bindings is successfull.", | ||
"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,36 @@ | ||
#! python3 | ||
|
||
import System | ||
|
||
import Rhino | ||
import Rhino.Geometry as rg | ||
from ghpythonlib.componentbase import executingcomponent as component | ||
|
||
import Grasshopper as gh | ||
from Grasshopper.Kernel import GH_RuntimeMessageLevel as RML | ||
|
||
import diffCheck | ||
from diffCheck import diffCheckBindings | ||
|
||
class DFMeshToCloud(component): | ||
def RunScript(self): | ||
""" | ||
The component test and import bind module for diffCheck. | ||
""" | ||
ghenv.Component.Message = f"diffCheck v: {diffCheck.__version__}" | ||
is_binding_imported = diffCheckBindings.test() | ||
|
||
if not is_binding_imported: | ||
ghenv.Component.AddRuntimeMessage(RML.Warning, "Bindings not imported.") | ||
else: | ||
ghenv.Component.AddRuntimeMessage(RML.Remark, "Bindings imported.") | ||
|
||
return is_binding_imported | ||
|
||
################################################################### | ||
# >>>>>>>> DEBUG START - to comment out when componentized >>>>>>>> | ||
################################################################### | ||
|
||
if __name__ == "__main__": | ||
comp = DFMeshToCloud() | ||
o_is_imported = comp.RunScript() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.