Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.64 KB | None | 0 0
  1. {
  2. "yarn_parameters":[
  3. {
  4. "name": "default"
  5. }
  6. ],
  7. "patterns":[
  8. {
  9. "type": "plain",
  10. "name": "woven1",
  11. "yarn_parameters": ["default"],
  12. "warp_sep_factor" : 2.1,
  13. "weft_sep_factor" : 2.1
  14. }
  15. ],
  16. "fabrics":[
  17. /*{
  18. "pattern": "woven1",
  19.  
  20. "garment_vertices_2d": [-0.002456,-0.013927,0.000000,0.013927,-0.002456,0.000000,0.002456,0.013927,0.000000,-0.013927,0.002456,0.000000,-0.019658,-0.025972,0.000000,-0.003275,-0.014501,0.000000,-0.014746,0.001882,0.000000,-0.031129,-0.009589,0.000000],
  21. "garment_vertices_3d": [-0.010000,-0.010000,0.000000,0.010000,-0.010000,0.000000,0.010000,0.010000,0.000000,-0.010000,0.010000,0.000000,-0.030000,-0.010000,0.000000,-0.010000,-0.010000,0.000000,-0.010000,0.010000,0.000000,-0.030000,0.010000,0.000000],
  22.  
  23.  
  24. "garment_faces": [
  25. [0,1,2, 0,2,3],
  26. [4,5,6, 4,6,7]
  27. ],
  28.  
  29. "seams": [
  30. {
  31. "left":[0,3],
  32. "right":[5,6]
  33. }
  34. ],
  35.  
  36. "minimum_segment_length": 0.0002,
  37.  
  38. "gravity_vector": [0,0,-9.8],
  39.  
  40. "only_lagrangian_nodes": true,
  41.  
  42. "use_stretch_energy":true,
  43. "use_bending_energy":true,
  44. "use_shear_energy":true,
  45. "use_seam_bending_energy":false,
  46. "use_seam_shear_energy":false,
  47.  
  48. "fix_node_spheres":[
  49. {"center":[-0.010000,-0.010000,0.000000], "radius":0.1}
  50. ]
  51. },
  52. {
  53. "pattern": "woven1",
  54.  
  55. "garment_vertices_2d": [-0.010000,-0.010000,0.000000,0.010000,-0.010000,0.000000,0.010000,0.010000,0.000000,-0.010000,0.010000,0.000000,-0.030000,-0.010000,0.000000,-0.010000,-0.010000,0.000000,-0.010000,0.010000,0.000000,-0.030000,0.010000,0.000000],
  56. "garment_vertices_3d": [-0.010000,-0.010000,0.003000,0.010000,-0.010000,0.003000,0.010000,0.010000,0.003000,-0.010000,0.010000,0.003000,-0.030000,-0.010000,0.003000,-0.010000,-0.010000,0.003000,-0.010000,0.010000,0.003000,-0.030000,0.010000,0.003000],
  57.  
  58.  
  59. "garment_faces": [
  60. [0,1,2, 0,2,3],
  61. [4,5,6, 4,6,7]
  62. ],
  63.  
  64. "seams": [
  65. {
  66. "left":[3,0],
  67. "right":[6,5]
  68. }
  69. ],
  70.  
  71. "minimum_segment_length": 0.0002,
  72.  
  73. "gravity_vector": [0,0,-9.8],
  74.  
  75. "only_lagrangian_nodes": true,
  76.  
  77. "fix_node_planes":[
  78. {"center":[0,0,0], "normal":[1,0,0]}
  79. ]
  80. },*/
  81. {
  82. "pattern": "woven1",
  83.  
  84. "garment_vertices_2d": [0,0,0, 0.1,0,0, 0.2,0,0, 0,0.1,0, 0.1,0.1,0, 0.2,0.1,0,
  85. 0,0.1,0, 0.1,0.1,0, 0,0.2,0, 0.1,0.2,0,
  86. 0.1,0.1,0, 0.2,0.1,0, 0.1,0.2,0, 0.2,0.2,0,
  87. 0.3,0,0, 0.3,0.1,0],
  88. "garment_vertices_3d": [0,0,0, 0.1,0,0, 0.2,0,0, 0,0.1,0, 0.1,0.1,0, 0.2,0.1,0,
  89. 0,0.1,0, 0.1,0.1,0, 0,0.2,0, 0.1,0.2,0,
  90. 0.1,0.1,0, 0.2,0.1,0, 0.1,0.2,0, 0.2,0.2,0,
  91. 0.3,0,0, 0.3,0.1,0],
  92.  
  93.  
  94. "garment_faces": [
  95. [0,1,3, 3,1,4, 1,2,4, 4,2,5, 2,14,5, 5,14,15],
  96. [6,7,8, 8,7,9],
  97. [10,11,12, 12,11,13]
  98. ],
  99.  
  100. "seams": [
  101. {
  102. "left":[6,7],
  103. "right":[3,4]
  104. },
  105. {
  106. "left":[10,11],
  107. "right":[4,5]
  108. },
  109. {
  110. "left":[7,9],
  111. "right":[10,12]
  112. }
  113. /*
  114. {
  115. "left":[3,4],
  116. "right":[6,7]
  117. },
  118. {
  119. "left":[4,5],
  120. "right":[10,11]
  121. },
  122. {
  123. "left":[10,12],
  124. "right":[7,9]
  125. }
  126. */
  127. ],
  128.  
  129. "minimum_segment_length": 0.0002,
  130.  
  131. "gravity_vector": [0,0,-9.8],
  132.  
  133. "only_lagrangian_nodes": true,
  134.  
  135. "fix_node_planes":[
  136. {"center":[0,0,0], "normal":[1,0,0]}
  137. ]
  138. }
  139. ],
  140. "static_meshes":[
  141. {
  142. /*"colliders":
  143. [
  144. {
  145. "name": "Col1",
  146. "mesh": "meshes/Box.off",
  147. "position":[0,0,-0.12],
  148. "rotation":{
  149. "angle": 0,
  150. "axis":[1,0,0]
  151. },
  152. "local_scale":[0.25,0.08,0.02],
  153. "distance_field":{
  154. "voxels_on_max_side": 32,
  155. "ex_narrow_band_dist": 32.0
  156. }
  157. },
  158. {
  159. "name": "Col2",
  160. "mesh": "meshes/Box.off",
  161. "position":[-0.04, 0, -0.006],
  162. "rotation":{
  163. "angle": 0.5,
  164. "axis":[0,1,0]
  165. },
  166. "local_scale":[0.05, 0.08, 0.01],
  167. "distance_field":{
  168. "voxels_on_max_side": 32,
  169. "ex_narrow_band_dist": 32.0
  170. }
  171. },
  172. {
  173. "name": "Col3",
  174. "mesh": "meshes/Box.off",
  175. "position":[0.04, 0, -0.003],
  176. "rotation":{
  177. "angle": -0.5,
  178. "axis":[0,1,0]
  179. },
  180. "local_scale":[0.05, 0.08, 0.01],
  181. "distance_field":{
  182. "voxels_on_max_side": 32,
  183. "ex_narrow_band_dist": 32.0
  184. }
  185. },
  186. {
  187. "name": "Col4",
  188. "mesh": "meshes/Box.off",
  189. "position":[0.06, 0, -0.1],
  190. "rotation":{
  191. "angle": 0,
  192. "axis":[0,1,0]
  193. },
  194. "local_scale":[0.02, 0.05, 0.1],
  195. "distance_field":{
  196. "voxels_on_max_side": 32,
  197. "ex_narrow_band_dist": 32.0
  198. }
  199. }
  200. ]*/
  201. }
  202. ],
  203. "solver":{
  204. "type": "newton_backward_euler",
  205. "dt": 0.001
  206. },
  207. "use_gpu": false
  208. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement