Skip to content

Commit

Permalink
Merge pull request #169 from erdo100/visualisation_carom_balls
Browse files Browse the repository at this point in the history
Visualisation carom balls
  • Loading branch information
ekiefl authored Jan 1, 2025
2 parents d76a79e + ab2668f commit 67ff6bf
Show file tree
Hide file tree
Showing 17 changed files with 1,157 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pooltool/layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

DEFAULT_STANDARD_BALLSET = get_ballset("pooltool_pocket")
DEFAULT_SNOOKER_BALLSET = get_ballset("generic_snooker")
DEFAULT_THREECUSH_BALLSET = None
DEFAULT_THREECUSH_BALLSET = get_ballset("billiard")
DEFAULT_SUMTOTHREE_BALLSET = None


Expand Down
Binary file added pooltool/models/balls/billiard/red.blend
Binary file not shown.
Binary file added pooltool/models/balls/billiard/red.glb
Binary file not shown.
Binary file added pooltool/models/balls/billiard/red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
382 changes: 382 additions & 0 deletions pooltool/models/balls/billiard/red.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pooltool/models/balls/billiard/shadow.blend
Binary file not shown.
Binary file added pooltool/models/balls/billiard/shadow.glb
Binary file not shown.
Binary file added pooltool/models/balls/billiard/white.blend
Binary file not shown.
Binary file added pooltool/models/balls/billiard/white.glb
Binary file not shown.
Binary file added pooltool/models/balls/billiard/white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
382 changes: 382 additions & 0 deletions pooltool/models/balls/billiard/white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pooltool/models/balls/billiard/yellow.blend
Binary file not shown.
Binary file added pooltool/models/balls/billiard/yellow.glb
Binary file not shown.
Binary file added pooltool/models/balls/billiard/yellow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
382 changes: 382 additions & 0 deletions pooltool/models/balls/billiard/yellow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions pooltool/objects/ball/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ class PrebuiltBallParams(StrEnum):
),
PrebuiltBallParams.BILLIARD_GENERIC: BallParams(
m=0.210,
R=0.03048,
u_s=0.5,
R=0.0615 / 2,
u_s=0.2,
u_r=0.01,
u_sp_proportionality=10 * 2 / 5 / 9,
e_c=0.85,
f_c=0.5,
f_c=0.15,
g=9.81,
),
}
Expand Down
13 changes: 7 additions & 6 deletions pooltool/objects/table/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,21 @@ class TableName(StrEnum):
lights_height=1.99,
model_descr=TableModelDescr(name="snooker_generic"),
),
# https://web.archive.org/web/20130801042614/http://www.umb.org/Rules/Carom_Rules.pdf
TableName.BILLIARD_WIP: BilliardTableSpecs(
l=3.05,
w=3.05 / 2,
l=2.84,
w=2.84 / 2,
cushion_width=2 * 2.54 / 100,
cushion_height=0.64 * 2 * 0.028575,
cushion_height=0.037,
height=0.708,
lights_height=1.99,
model_descr=TableModelDescr.null(),
),
TableName.SUMTOTHREE_WIP: BilliardTableSpecs(
l=3.05 / 2.5,
w=3.05 / 2 / 2.5,
l=2.84,
w=2.84 / 2,
cushion_width=2 * 2.54 / 100,
cushion_height=0.64 * 2 * 0.028575,
cushion_height=0.037,
height=0.708,
lights_height=1.99,
model_descr=TableModelDescr.null(),
Expand Down

0 comments on commit 67ff6bf

Please sign in to comment.