Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "yarn_parameters":[
- {
- "name": "default"
- }
- ],
- "patterns":[
- {
- "type": "plain",
- "name": "woven1",
- "yarn_parameters": ["default"],
- "warp_sep_factor" : 2.1,
- "weft_sep_factor" : 2.1
- }
- ],
- "fabrics":[
- /*{
- "pattern": "woven1",
- "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],
- "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],
- "garment_faces": [
- [0,1,2, 0,2,3],
- [4,5,6, 4,6,7]
- ],
- "seams": [
- {
- "left":[0,3],
- "right":[5,6]
- }
- ],
- "minimum_segment_length": 0.0002,
- "gravity_vector": [0,0,-9.8],
- "only_lagrangian_nodes": true,
- "use_stretch_energy":true,
- "use_bending_energy":true,
- "use_shear_energy":true,
- "use_seam_bending_energy":false,
- "use_seam_shear_energy":false,
- "fix_node_spheres":[
- {"center":[-0.010000,-0.010000,0.000000], "radius":0.1}
- ]
- },
- {
- "pattern": "woven1",
- "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],
- "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],
- "garment_faces": [
- [0,1,2, 0,2,3],
- [4,5,6, 4,6,7]
- ],
- "seams": [
- {
- "left":[3,0],
- "right":[6,5]
- }
- ],
- "minimum_segment_length": 0.0002,
- "gravity_vector": [0,0,-9.8],
- "only_lagrangian_nodes": true,
- "fix_node_planes":[
- {"center":[0,0,0], "normal":[1,0,0]}
- ]
- },*/
- {
- "pattern": "woven1",
- "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,
- 0,0.1,0, 0.1,0.1,0, 0,0.2,0, 0.1,0.2,0,
- 0.1,0.1,0, 0.2,0.1,0, 0.1,0.2,0, 0.2,0.2,0,
- 0.3,0,0, 0.3,0.1,0],
- "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,
- 0,0.1,0, 0.1,0.1,0, 0,0.2,0, 0.1,0.2,0,
- 0.1,0.1,0, 0.2,0.1,0, 0.1,0.2,0, 0.2,0.2,0,
- 0.3,0,0, 0.3,0.1,0],
- "garment_faces": [
- [0,1,3, 3,1,4, 1,2,4, 4,2,5, 2,14,5, 5,14,15],
- [6,7,8, 8,7,9],
- [10,11,12, 12,11,13]
- ],
- "seams": [
- {
- "left":[6,7],
- "right":[3,4]
- },
- {
- "left":[10,11],
- "right":[4,5]
- },
- {
- "left":[7,9],
- "right":[10,12]
- }
- /*
- {
- "left":[3,4],
- "right":[6,7]
- },
- {
- "left":[4,5],
- "right":[10,11]
- },
- {
- "left":[10,12],
- "right":[7,9]
- }
- */
- ],
- "minimum_segment_length": 0.0002,
- "gravity_vector": [0,0,-9.8],
- "only_lagrangian_nodes": true,
- "fix_node_planes":[
- {"center":[0,0,0], "normal":[1,0,0]}
- ]
- }
- ],
- "static_meshes":[
- {
- /*"colliders":
- [
- {
- "name": "Col1",
- "mesh": "meshes/Box.off",
- "position":[0,0,-0.12],
- "rotation":{
- "angle": 0,
- "axis":[1,0,0]
- },
- "local_scale":[0.25,0.08,0.02],
- "distance_field":{
- "voxels_on_max_side": 32,
- "ex_narrow_band_dist": 32.0
- }
- },
- {
- "name": "Col2",
- "mesh": "meshes/Box.off",
- "position":[-0.04, 0, -0.006],
- "rotation":{
- "angle": 0.5,
- "axis":[0,1,0]
- },
- "local_scale":[0.05, 0.08, 0.01],
- "distance_field":{
- "voxels_on_max_side": 32,
- "ex_narrow_band_dist": 32.0
- }
- },
- {
- "name": "Col3",
- "mesh": "meshes/Box.off",
- "position":[0.04, 0, -0.003],
- "rotation":{
- "angle": -0.5,
- "axis":[0,1,0]
- },
- "local_scale":[0.05, 0.08, 0.01],
- "distance_field":{
- "voxels_on_max_side": 32,
- "ex_narrow_band_dist": 32.0
- }
- },
- {
- "name": "Col4",
- "mesh": "meshes/Box.off",
- "position":[0.06, 0, -0.1],
- "rotation":{
- "angle": 0,
- "axis":[0,1,0]
- },
- "local_scale":[0.02, 0.05, 0.1],
- "distance_field":{
- "voxels_on_max_side": 32,
- "ex_narrow_band_dist": 32.0
- }
- }
- ]*/
- }
- ],
- "solver":{
- "type": "newton_backward_euler",
- "dt": 0.001
- },
- "use_gpu": false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement