SHARE
TWEET

Untitled

a guest Feb 21st, 2020 142 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //set of coordinates
  2.  
  3. s1 ∈ BRICK1X4 = {0,0,0};
  4. s2 ∈ BRICK1X4 = {7.8,0,0};
  5. s3 ∈ BRICK1X4 = {15.6,0,0};
  6. s4 ∈ BRICK1X4 = {23.4,0,0};
  7. c1 ∈ BRICK1X4 = {0,0,-9.6};
  8. c2 ∈ BRICK1X4 = {7.8,0,-9.6};
  9. c3 ∈ BRICK1X4 = {15.6,0,-9.6};
  10. c4 ∈ BRICK1X4 = {23.4,0,-9.6};
  11.  
  12. //s3 ∈ BRICK1X4 != s3 ∈ BRICK2X2
  13.  
  14. s1 ∈ BRICK2X2 = {0,0,0};
  15. s2 ∈ BRICK2x2 = {7.8,0,0};
  16. s3 ∈ BRICK2X2 = {0,7.8,0};
  17. s4 ∈ BRICK2X2 = {7.8,7.8,0};
  18. c1 ∈ BRICK2x2 = {0,0,-9.6};
  19. c2 ∈ BRICK2x2 = {7.8,0,-9.6};
  20. c3 ∈ BRICK2X2 = {0,7.8,-9.6};
  21. c4 ∈ BRICK2X2 = {7.8,7.8,-9.6};
  22.  
  23. //set of studs and clutches
  24.  
  25. {BRICK1X4} = {{s1,s2,s3,s4},{c1,c2,c3,c4}};
  26.  
  27. {BRICK2X2} = {{{s1,s2},{s3,s4}},{{c1,c2},{c3,c4}}}
  28.  
  29. // set of bricks
  30. {{ASSEMBLY1}} = {
  31. s ∈ BRICK1X4 ⋃ c ∈ BRICK2X2};
  32.  
  33. // what if you wanted to attach a BRICK1X4 onto another BRICK1X4 hmm...
  34.  
  35. {{{ASSEMBLY2}}} = {BRICK1X4}
  36. {{{{ASSEMBLY3}}}} = {BRICK1X4}
  37. ASSEMBLY4 = {{{ASSEMBLY2}}} ⋃ {{{{ASSEMBLY3}}}}};
  38.  
  39. //this syntax is getting ugly
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top