Skip to content

Commit

Permalink
Grasshopper Installation via hash r
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasvestartas committed May 15, 2024
1 parent f2bbcc9 commit c31c587
Show file tree
Hide file tree
Showing 43 changed files with 3,749 additions and 3,740 deletions.
2 changes: 1 addition & 1 deletion src/rhino/gh/cpy/beam_volume/code.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# r: compas_wood, compas, wood_nano
import Rhino
import Grasshopper
import ghpythonlib.treehelpers as th
Expand All @@ -19,6 +18,7 @@
from wood_nano import point2
from wood_nano import point3
from wood_nano import cut_type2
import System

class BeamVolume(component):
def beam_volumes(self,
Expand Down
1 change: 1 addition & 0 deletions src/rhino/gh/cpy/chevron_mesh/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import Rhino.Geometry
from Rhino.Geometry import Mesh, MeshFace, Point3f
import math
import System


class Chevron:
Expand Down
3 changes: 2 additions & 1 deletion src/rhino/gh/cpy/closest_indexed_points/code.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# r: compas_wood, compas, wood_nano

from ghpythonlib.componentbase import executingcomponent as component
import Grasshopper
import Rhino
import Rhino.Geometry
from Rhino.Geometry import Sphere
from Rhino.Geometry import Polyline
import ghpythonlib.treehelpers as th
import System


class MyComponent(component):
Expand Down
4 changes: 2 additions & 2 deletions src/rhino/gh/cpy/closest_lines/code.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# r: compas_wood, compas, wood_nano

from ghpythonlib.componentbase import executingcomponent as component
import Grasshopper
import Rhino
Expand All @@ -7,7 +7,7 @@
from Rhino.Geometry import Vector3d
from Rhino.Geometry import Polyline
import ghpythonlib.treehelpers as th

import System

class MyComponent(component):
def RunScript(
Expand Down
2 changes: 1 addition & 1 deletion src/rhino/gh/cpy/custom_joints/code.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# r: compas_wood, compas, wood_nano

from ghpythonlib.componentbase import executingcomponent as component
import System
import Rhino
Expand Down
1 change: 1 addition & 0 deletions src/rhino/gh/cpy/ears/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from Rhino.Geometry import Brep
import math
import Grasshopper
import System


class Ears(component):
Expand Down
3 changes: 2 additions & 1 deletion src/rhino/gh/cpy/input_get/code.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# r: compas_wood, compas, wood_nano

from ghpythonlib.componentbase import executingcomponent as component
import Grasshopper
import ghpythonlib.treehelpers as th
import Rhino
import System


class MyComponent(component):
Expand Down
3 changes: 2 additions & 1 deletion src/rhino/gh/cpy/input_set/code.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# r: compas_wood, compas, wood_nano

from ghpythonlib.componentbase import executingcomponent as component
import Grasshopper
import Rhino
import ghpythonlib.treehelpers as th
from Rhino.Geometry import Vector3d
from Rhino.Geometry import Plane
from compas_wood.datastructures import WoodData
import System


class MyComponent(component):
Expand Down
7 changes: 7 additions & 0 deletions src/rhino/gh/cpy/installation/code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import System
import Rhino

# r: wood-nano==0.1.1, compas-wood==2.1.0, compas==2.1.1

from wood_nano import test as wood_nano_test
wood_nano_test()
Binary file added src/rhino/gh/cpy/installation/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/rhino/gh/cpy/installation/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "install",
"nickname": "install",
"description": "install compas_wood",
"category": "compas_wood",
"subcategory": "_install_",
"exposure": 16,
"instanceGuid": "6F2965A4-50E5-4883-AEF9-DDE4D2D990E2",
"ghpython": {
"hideOutput": true,
"hideInput": true,
"isAdvancedMode": true,
"marshalOutGuids": true,
"iconDisplay": 2,
"inputParameters": [
],
"outputParameters": [
]
}
}
4 changes: 3 additions & 1 deletion src/rhino/gh/cpy/joint_parameters/code.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# r: compas_wood, compas, wood_nano

import System
import Rhino
from ghpythonlib.componentbase import executingcomponent as component


Expand Down
1 change: 0 additions & 1 deletion src/rhino/gh/cpy/joints/code.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# r: compas_wood, compas, wood_nano
from ghpythonlib.componentbase import executingcomponent as component
import System
from ghpythonlib import treehelpers
Expand Down
3 changes: 2 additions & 1 deletion src/rhino/gh/cpy/line_volume/code.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# r: compas_wood, compas, wood_nano

from ghpythonlib.componentbase import executingcomponent as component # noqa: E402
import Rhino
import System
from Rhino.Geometry import (
Brep,
Polyline,
Expand Down
5 changes: 0 additions & 5 deletions src/rhino/gh/cpy/loft_mesh/code.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
"""get joints ids and connections areas between elements"""

__author__ = "petras vestartas"
__version__ = "2024.04.25"

from ghpythonlib.componentbase import executingcomponent as component
import Rhino
import Rhino.Geometry
Expand Down
2 changes: 1 addition & 1 deletion src/rhino/gh/cpy/orient_data/code.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# r: compas_wood, compas, wood_nano

from Rhino.Geometry import Polyline
from Rhino.Geometry import Transform
from Rhino.Geometry import Vector3d
Expand Down
1 change: 1 addition & 0 deletions src/rhino/gh/cpy/recenter/code.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from ghpythonlib.componentbase import executingcomponent as component
import Rhino
import System
import Grasshopper


Expand Down
4 changes: 1 addition & 3 deletions src/rhino/gh/cpy/solver/code.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# r: compas_wood, compas, wood_nano

from ghpythonlib.componentbase import executingcomponent as component
import Rhino
import System
Expand Down Expand Up @@ -88,8 +88,6 @@ def RunScript(self,

input_adjacency = _data.adjacency
joint_parameters = wood_globals.joints_parameters_and_types
wood_globals.face_to_face_side_to_side_joints_rotated_joint_as_average = False
wood_globals.face_to_face_side_to_side_joints_all_treated_as_rotated = False


if _joint_p:
Expand Down
5 changes: 1 addition & 4 deletions src/rhino/gh/cpy/solver_custom/code.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# r: compas_wood, compas, wood_nano

from ghpythonlib.componentbase import executingcomponent as component
import Rhino
import System
Expand Down Expand Up @@ -156,9 +156,6 @@ def RunScript(self,
elif key == -69:
wood_globals.custom_joints_b_female = value

wood_globals.face_to_face_side_to_side_joints_rotated_joint_as_average = False
wood_globals.face_to_face_side_to_side_joints_all_treated_as_rotated = False

wood_nano_get_connection_zones(
to_point2(input_polyline_pairs),
to_vector2(input_insertion_vectors),
Expand Down
1 change: 1 addition & 0 deletions src/rhino/gh/cpy/xml_read/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import Grasshopper as gh
import Rhino.Geometry as rg
import clr
import System

clr.AddReference("System.Xml")
import System.Xml # noqa: E402
Expand Down
1 change: 1 addition & 0 deletions src/rhino/gh/cpy/xml_write/code.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import System
from ghpythonlib.componentbase import executingcomponent as component
import clr

Expand Down
1 change: 1 addition & 0 deletions src/rhino/gh/cpy/xml_write_with_properties/code.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from ghpythonlib.componentbase import executingcomponent as component
import System
import clr

clr.AddReference("System.Xml")
Expand Down
Binary file added src/rhino/gh/examples/0_install.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/10_vda_vidy.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/10_vidy_chapel.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/11_vda_slab.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/12_hilti_connectors.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/15_beams_grouping_volumes.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/15_beams_simple_volume_a.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/15_beams_simple_volume_b.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/15_beams_simple_volume_c.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/15_beams_simple_volume_d.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/15_beams_simple_volume_e.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/16_beams_nearest_curve.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/17_beam_custom_joints.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/1_interfaces.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/2_data_jointparameters.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/7_assign_directions_and_joint_types.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/8_cases_chevron_boxes.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/8_cases_chevron_input_surfaces.gh
Binary file not shown.
Binary file modified src/rhino/gh/examples/compas_wood_examples.zip
Binary file not shown.
7,415 changes: 3,698 additions & 3,717 deletions src/rhino/gh/icons.ai

Large diffs are not rendered by default.

Binary file modified src/rhino/gh/package_manager/food_for_rhino_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c31c587

Please sign in to comment.