Skip to content

Commit

Permalink
MILESTONE merge raw with plates into single plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasvestartas committed Feb 23, 2025
1 parent 0380cf5 commit 88a8c39
Show file tree
Hide file tree
Showing 84 changed files with 4,507 additions and 13,393 deletions.
1 change: 0 additions & 1 deletion src/rhino/plugin/commands/w_dataset.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flags: python.reloadEngine
#! python3
# venv: timber_connections
import Rhino
Expand Down
1 change: 0 additions & 1 deletion src/rhino/plugin/commands/w_dataset_annen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flags: python.reloadEngine
#! python3
# venv: timber_connections
import Rhino
Expand Down
1 change: 0 additions & 1 deletion src/rhino/plugin/commands/w_dataset_beam_volume.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flags: python.reloadEngine
#! python3
# venv: timber_connections
from wood_nano import beam_volumes as wood_nano_beam_volumes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flags: python.reloadEngine
#! python3
# venv: timber_connections
import Rhino
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flags: python.reloadEngine
#! python3
# venv: timber_connections
import Rhino
Expand Down
1 change: 0 additions & 1 deletion src/rhino/plugin/commands/w_dataset_cross_connectors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flags: python.reloadEngine
#! python3
# venv: timber_connections
import Rhino
Expand Down
1 change: 0 additions & 1 deletion src/rhino/plugin/commands/w_dataset_folded_plates.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flags: python.reloadEngine
#! python3
# venv: timber_connections
import Rhino
Expand Down
2 changes: 1 addition & 1 deletion src/rhino/plugin/commands/w_install.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: timber_connections
# r: wood-nano==0.1.1, compas-wood==2.3.0, compas==2.4.3, wood-rui==0.1.0, shapely, compas_model==6.0.1
# r: wood-nano==0.2.0, compas-wood==2.4.0, compas==2.4.3, wood-rui==0.2.0

from wood_nano import test

Expand Down
1 change: 0 additions & 1 deletion src/rhino/plugin/commands/w_loft_brep.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flags: python.reloadEngine
#! python3
# venv: timber_connections
import Rhino
Expand Down
1 change: 0 additions & 1 deletion src/rhino/plugin/commands/w_loft_mesh.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flags: python.reloadEngine
#! python3
# venv: timber_connections
import Rhino
Expand Down
30 changes: 24 additions & 6 deletions src/rhino/plugin/commands/w_parameters.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# flags: python.reloadEngine
#! python3
# venv: timber_connections
from typing import *
from wood_rui import wood_rui_globals, NamedValuesForm # Import the singleton instance
from compas_wood.binding import wood_globals

if __name__ == "__main__":

# Define the parameters
parameters: Tuple[str, Any] = [
("SEARCH TYPE", " "), # 0
Expand Down Expand Up @@ -109,6 +107,8 @@
("limit_min_joint_length", wood_globals.limit_min_joint_length), # 64
("three_valence", wood_rui_globals.three_valence), # 65
("adjacency", wood_rui_globals.adjacency), # 66
("dowel_radius", wood_rui_globals.dowel_radius), # 67
("loft", wood_rui_globals.loft), # 68
]

# Extract names and values separately
Expand Down Expand Up @@ -148,7 +148,11 @@
]

wood_globals.joints_parameters_and_types = joint_parameters
wood_globals.joint_volume_extension = [form.attributes[12][1], form.attributes[13][1], form.attributes[14][1]]
wood_globals.joint_volume_extension = [
form.attributes[12][1],
form.attributes[13][1],
form.attributes[14][1],
]
wood_globals.output_geometry_type = form.attributes[4][1]
wood_globals.clipper_scale = form.attributes[52][1]
wood_globals.clipper_area = form.attributes[53][1]
Expand All @@ -159,9 +163,15 @@
wood_globals.data_set_input_folder = form.attributes[58][1]
wood_globals.data_set_output_file = form.attributes[59][1]
wood_globals.data_set_output_database = form.attributes[60][1]
wood_globals.face_to_face_side_to_side_joints_all_treated_as_rotated = form.attributes[61][1]
wood_globals.face_to_face_side_to_side_joints_rotated_joint_as_average = form.attributes[62][1]
wood_globals.face_to_face_side_to_side_joints_dihedral_angle = form.attributes[63][1]
wood_globals.face_to_face_side_to_side_joints_all_treated_as_rotated = (
form.attributes[61][1]
)
wood_globals.face_to_face_side_to_side_joints_rotated_joint_as_average = (
form.attributes[62][1]
)
wood_globals.face_to_face_side_to_side_joints_dihedral_angle = form.attributes[
63
][1]
wood_globals.limit_min_joint_length = form.attributes[64][1]

wood_rui_globals.scale = [
Expand Down Expand Up @@ -190,3 +200,11 @@
wood_rui_globals.adjacency = form.attributes[66][
1
] # temporary parameter that must go from compas_wood.binding import wood_globals

wood_rui_globals.dowel_radius = form.attributes[67][
1
] # temporary parameter that must go from compas_wood.binding import wood_globals

wood_rui_globals.loft = form.attributes[68][
1
] # temporary parameter that must go from compas_wood.binding import wood_globals
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def callback(selection: dict[str, any], name: str):
selection["distance"],
selection["display_plane"],
selection["display_line"],
selection["intersection"],
)

####################################################################################################
Expand Down Expand Up @@ -93,6 +94,7 @@ def callback(selection: dict[str, any], name: str):
"display_plane": (False, bool),
"display_line": (False, bool),
"display_features": (False, bool),
"intersection" : (False, bool),
"replace_or_extend_features": (True, bool),
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ def callback(selection: dict[str, any], name: str):
polylines_lists: list[list[Rhino.Geometry.Polyline]] = from_point3(ow_polylines)
fab_types: list[list[int]] = from_cut_type2(ow_fab_types)

print(polylines_lists)
print(fab_types)

######################################################################
# Loft the output and add it to elements as features
# index_to_group[count] = (group_id, pair_id)
Expand Down
1 change: 0 additions & 1 deletion src/rhino/plugin/commands/w_solver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# flags: python.reloadEngine
#! python3
# venv: timber_connections
import Rhino
Expand Down
375 changes: 368 additions & 7 deletions src/rhino/plugin/compas_wood.rhproj

Large diffs are not rendered by default.

7,917 changes: 4,038 additions & 3,879 deletions src/rhino/plugin/icons/icons.ai

Large diffs are not rendered by default.

File renamed without changes
File renamed without changes
23 changes: 23 additions & 0 deletions src/rhino/plugin/icons/w_raw_custom_joints.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
15 changes: 15 additions & 0 deletions src/rhino/plugin/icons/w_raw_orient.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions src/rhino/plugin/icons/w_raw_solver.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 88a8c39

Please sign in to comment.