Forum Replies Created
-
AuthorPosts
-
8 June 2017 at 20:53 in reply to: [SOLVED] extracting the visual mesh and the force applied by mouse #9304ZahraBlocked
Dear Hugo,
Thank you for your guidance.
1. One of my mistakes was that I did not know I should use a surface mesh for the visual model. Now I am using a surface mesh for visual model, however, again I can not see it in the run.
This is the visual part of the xml code:<Node name="node3" > <OglModel template="ExtVec3f" name="visual" fileMesh="d:/work/phd/sofa/liver/liverfinal/testbygmsh/livertriangle181.gmsh" material="Default Diffuse 1 0.74902 0.74902 0 1 Ambient 1 0.2 0.2 0.2 1 Specular 0 1 1 1 1 Emissive 0 0 0 0 0 Shininess 0 45 " primitiveType="DEFAULT" blendEquation="GL_FUNC_ADD" sfactor="GL_SRC_ALPHA" dfactor="GL_ONE_MINUS_SRC_ALPHA" /> <BarycentricMapping template="Vec3d,ExtVec3f" name="barycentricMap2" input="@.." output="@visual" /> <MeshExporter name="meshExporter3" filename="c:/users/zahra/desktop/livertrianglenew181.gmsh" format="gmsh" edges="0" quads="0" tetras="0" hexas="0" exportEveryNumberOfSteps="1" exportAtBegin="1" exportAtEnd="1" /> </Node>
2. Must I just use OBJexporter, or I can use other exporters such as meshexporter? (I prefer to have it in .gmsh format to avoid mesh converting).
I use a high resolution mesh for behaviour model and a low resolution mesh for visual model.
When I use MeshExporter to export the visual model, the number of nodes of visual model are equal to the number of nodes in the behaviour model. How can I have a low resolution visual model?3. You mean I should look at the force vector in mechanicalobject while I apply a force by mouse? It does not appear in the force vector. Should I export it somehow?
for more information, here you can find the .scn and mesh files:
XML:
https://gist.github.com/zbounik/2efc7c0aa2da1fd5c38ebf60d3eac72bBehviour model:
https://gist.github.com/zbounik/924a6bff9683193477acf23156faee44Visual model:
https://gist.github.com/zbounik/74ea1e1d8e823fbabda6c0e38266171bThank you very much for your kind helps.
Best,
ZahraZahraBlockedHi Hugo,
Yes, Thank you very much.
ZahraBlockedHi Hugo,
Yes, Thanks!
ZahraBlockedHi Hugo,
Thank you very much for your explanation.
Best regards,
Zahra17 March 2017 at 21:59 in reply to: [SOLVED] How to generate one specific deformation in two different mesh resolutions? #8802ZahraBlockedHi Hugo,
Thank you for your kind reply. I will try your guidance about using BarycentricMapping.
Best regards,
Zahra10 March 2017 at 16:55 in reply to: [SOLVED] How to generate one specific deformation in two different mesh resolutions? #8774ZahraBlockedThank you Guillaume.
10 March 2017 at 14:27 in reply to: [SOLVED] How to generate one specific deformation in two different mesh resolutions? #8771ZahraBlockedHi Guillaume,
Thank you for your help. It seems that the “@” character in the scene file makes this problem as it is considered to be a contact message.
Here is the scene file for the coarse simulation: https://titanpad.com/F0I5r0in3j
<Node name="root" gravity="0 -9.81 0" dt="0.005" > <VisualStyle name="visualStyle1" displayFlags="showVisual showBehaviorModels" /> <DefaultPipeline name="DefaultCollisionPipeline" depth="6" /> <BruteForceDetection name="Detection" /> <MinProximityIntersection name="Proximity" alarmDistance="0.8" contactDistance="0.5" /> <DefaultContactManager name="Response" response="default" /> <DefaultCollisionGroupManager name="Group" /> <Node name="Cloth Dynamic Mesh" > <MeshGmshLoader name="loader" filename="HighResolutionMesh.gmsh" edgesGroups="-1 0 40 0 40 40 -1 80 40 -1 -1 39 10 39 49 10 -1 59 88 -1 -1 87 40 87 127 40 -1 167 214 -1 -1 213 40 213 253 40 -1 293 466 -1 -1 465 40 465 505 40 -1 545 970 -1 -1 969 40 969 1009 40 -1 1049 1978 -1 -1 1977 40 1977 2017 40 -1 2057 3994 -1 -1 3993 40 3993 4033 40 -1 4073 8026 -1 -1 8025 40 8025 8065 40 -1 8105 16090 -1 -1 16089 40 16089 16129 40 -1 16169 32218 -1 -1 32217 40 32217 32257 40 -1 32297 64474 -1 -1 64473 40 64473 64513 40 -1 64553 128986 -1 -1 128985 40 128985 129025 40 -1 129065 258010 -1 -1 258009 40 258009 258049 40 -1 258089 516058 -1 -1 516057 40 516057 516097 40 -1 516137 1032154 -1 -1 1032153 40 1032153 1032193 40 -1 1032233 2064346 -1 -1 2064345 40 2064345 2064385 40 -1 2064425 4128730 -1 -1 4128729 64 4128729 4128793 64 -1 4128857 8257522 -1 -1 8257521 64 8257521 8257585 64 -1 8257649 16515106 -1 -1 16515105 64 16515105 16515169 64 -1 16515233 33030274 -1 -1 33030273 64 33030273 33030337 64 -1 33030401 66060610 -1 -1 66060609 64 66060609 66060673 64 -1 66060737 132121282 -1 -1 132121281 64 132121281 132121345 64 -1 132121409 264242626 -1 -1 264242625 64 264242625 264242689 64 -1 264242753 528485314 -1 -1 528485313 64 528485313 528485377 64 -1 528485441 1056970690 -1 -1 1056970689 64 1056970689 1056970753 64 -1 1056970817 2113941442 -1 -1 2113941441 80 2113941441 2113941521 80 -1 2113941601 -67084334 -1 -1 -67084335 80 -67084335 -67084255 80 -1 -67084175 -134168590 -1 -1 -134168591 160 -134168591 -134168431 160 -1 -134168271 -268337022 -1" trianglesGroups=" -1 0 32258" createSubelements="1" /> <MechanicalObject template="Vec3d" name="MechObj" position="@loader.position" velocity="0 0 0" force="0 0 0" externalForce="0 0 0" restScale="1" showIndices="0" showIndicesScale="2e-005" translation="10 0 20" rotation="0 90 90" scale3d="10 10 10" /> <FixedConstraint template="Vec3d" name="Fixed dof" group="0" indices="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 255 256 383 384 511 512 639 640 767 768 895 896 1023 1024 1151 1152 1279 1280 1407 1408 1535 1536 1663 1664 1791 1792 1919 1920 2047 2048 2175 2176 2303 2304 2431 2432 2559 2560 2687 2688 2815 2816 2943 2944 3071 3072 3199 3200 3327 3328 3455 3456 3583 3584 3711 3712 3839 3840 3967 3968 4095 4096 4223 4224 4351 4352 4479 4480 4607 4608 4735 4736 4863 4864 4991 4992 5119 5120 5247 5248 5375 5376 5503 5504 5631 5632 5759 5760 5887 5888 6015 6016 6143 6144 6271 6272 6399 6400 6527 6528 6655 6656 6783 6784 6911 6912 7039 7040 7167 7168 7295 7296 7423 7424 7551 7552 7679 7680 7807 7808 7935 7936 8063 8064 8191 8192 8319 8320 8447 8448 8575 8576 8703 8704 8831 8832 8959 8960 9087 9088 9215 9216 9343 9344 9471 9472 9599 9600 9727 9728 9855 9856 9983 9984 10111 10112 10239 10240 10367 10368 10495 10496 10623 10624 10751 10752 10879 10880 11007 11008 11135 11136 11263 11264 11391 11392 11519 11520 11647 11648 11775 11776 11903 11904 12031 12032 12159 12160 12287 12288 12415 12416 12543 12544 12671 12672 12799 12800 12927 12928 13055 13056 13183 13184 13311 13312 13439 13440 13567 13568 13695 13696 13823 13824 13951 13952 14079 14080 14207 14208 14335 14336 14463 14464 14591 14592 14719 14720 14847 14848 14975 14976 15103 15104 15231 15232 15359 15360 15487 15488 15615 15616 15743 15744 15871 15872 15999 16000 16127 16128 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383" /> <UniformMass template="Vec3d" name="Mass" mass="1" totalmass="50" showGravityCenter="1" /> <CGLinearSolver template="GraphScattered" name="linear solver" iterations="40" tolerance="1e-009" threshold="1e-009" /> <TriangleSetTopologyContainer name="Topology Container" position="@loader.position" edges="@loader.edges" triangles="@loader.triangles" /> <TriangleSetTopologyModifier name="Topology Modifier" /> <TriangleSetTopologyAlgorithms template="Vec3d" name="Topology Algorithms" /> <TriangleSetGeometryAlgorithms template="Vec3d" name="Geometry Algorithms" showIndicesScale="0.005" showPointIndices="0" showEdgeIndices="0" showTriangleIndices="0" /> <TriangularBendingSprings template="Vec3d" name="FEM-Bend" rayleighStiffness="0" stiffness="300" damping="1" /> <TriangularFEMForceField template="Vec3d" name="FEM" rayleighStiffness="0" method="large" poissonRatio="0.45" youngModulus="100" damping="0" /> <TTriangleModel template="Vec3d" name="models" selfCollision="0" /> <OglModel template="ExtVec3f" name="Visual" material="Default Diffuse 1 0 1 0 1 Ambient 1 0 0.2 0 1 Specular 0 0 1 0 1 Emissive 0 0 1 0 1 Shininess 0 45 " primitiveType="DEFAULT" blendEquation="GL_FUNC_ADD" sfactor="GL_SRC_ALPHA" dfactor="GL_ONE_MINUS_SRC_ALPHA" /> <IdentityMapping template="Vec3d,ExtVec3f" name="Mapping" input="@." output="@Visual" /> <PlaneForceField template="Vec3d" name="planeFF0" normal="0 1 0" /> <NewmarkImplicitSolver name="newmarkImplicitSolver5" /> <ConstantForceField template="Vec3d" name="constantFF0" points="8240 8264" forces="-1000 -1000 0 1000 -1000 0" /> </Node> </Node>
and the scene file for the fine simulation: https://titanpad.com/6wuBrtFOxI
<Node name="root" gravity="0 -9.81 0" dt="0.005" > <VisualStyle name="visualStyle1" displayFlags="showVisual showBehaviorModels" /> <DefaultPipeline name="DefaultCollisionPipeline" depth="6" /> <BruteForceDetection name="Detection" /> <MinProximityIntersection name="Proximity" alarmDistance="0.8" contactDistance="0.5" /> <DefaultContactManager name="Response" response="default" /> <DefaultCollisionGroupManager name="Group" /> <Node name="Cloth Dynamic Mesh" > <MeshGmshLoader name="loader" filename="HighResolutionMesh.gmsh" edgesGroups="-1 0 40 0 40 40 -1 80 40 -1 -1 39 10 39 49 10 -1 59 88 -1 -1 87 40 87 127 40 -1 167 214 -1 -1 213 40 213 253 40 -1 293 466 -1 -1 465 40 465 505 40 -1 545 970 -1 -1 969 40 969 1009 40 -1 1049 1978 -1 -1 1977 40 1977 2017 40 -1 2057 3994 -1 -1 3993 40 3993 4033 40 -1 4073 8026 -1 -1 8025 40 8025 8065 40 -1 8105 16090 -1 -1 16089 40 16089 16129 40 -1 16169 32218 -1 -1 32217 40 32217 32257 40 -1 32297 64474 -1 -1 64473 40 64473 64513 40 -1 64553 128986 -1 -1 128985 40 128985 129025 40 -1 129065 258010 -1 -1 258009 40 258009 258049 40 -1 258089 516058 -1 -1 516057 40 516057 516097 40 -1 516137 1032154 -1 -1 1032153 40 1032153 1032193 40 -1 1032233 2064346 -1 -1 2064345 40 2064345 2064385 40 -1 2064425 4128730 -1 -1 4128729 64 4128729 4128793 64 -1 4128857 8257522 -1 -1 8257521 64 8257521 8257585 64 -1 8257649 16515106 -1 -1 16515105 64 16515105 16515169 64 -1 16515233 33030274 -1 -1 33030273 64 33030273 33030337 64 -1 33030401 66060610 -1 -1 66060609 64 66060609 66060673 64 -1 66060737 132121282 -1 -1 132121281 64 132121281 132121345 64 -1 132121409 264242626 -1 -1 264242625 64 264242625 264242689 64 -1 264242753 528485314 -1 -1 528485313 64 528485313 528485377 64 -1 528485441 1056970690 -1 -1 1056970689 64 1056970689 1056970753 64 -1 1056970817 2113941442 -1 -1 2113941441 80 2113941441 2113941521 80 -1 2113941601 -67084334 -1 -1 -67084335 80 -67084335 -67084255 80 -1 -67084175 -134168590 -1 -1 -134168591 160 -134168591 -134168431 160 -1 -134168271 -268337022 -1" trianglesGroups=" -1 0 32258" createSubelements="1" /> <MechanicalObject template="Vec3d" name="MechObj" position="@loader.position" velocity="0 0 0" force="0 0 0" externalForce="0 0 0" restScale="1" showIndices="0" showIndicesScale="2e-005" translation="10 0 20" rotation="0 90 90" scale3d="10 10 10" /> <FixedConstraint template="Vec3d" name="Fixed dof" group="0" indices="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 255 256 383 384 511 512 639 640 767 768 895 896 1023 1024 1151 1152 1279 1280 1407 1408 1535 1536 1663 1664 1791 1792 1919 1920 2047 2048 2175 2176 2303 2304 2431 2432 2559 2560 2687 2688 2815 2816 2943 2944 3071 3072 3199 3200 3327 3328 3455 3456 3583 3584 3711 3712 3839 3840 3967 3968 4095 4096 4223 4224 4351 4352 4479 4480 4607 4608 4735 4736 4863 4864 4991 4992 5119 5120 5247 5248 5375 5376 5503 5504 5631 5632 5759 5760 5887 5888 6015 6016 6143 6144 6271 6272 6399 6400 6527 6528 6655 6656 6783 6784 6911 6912 7039 7040 7167 7168 7295 7296 7423 7424 7551 7552 7679 7680 7807 7808 7935 7936 8063 8064 8191 8192 8319 8320 8447 8448 8575 8576 8703 8704 8831 8832 8959 8960 9087 9088 9215 9216 9343 9344 9471 9472 9599 9600 9727 9728 9855 9856 9983 9984 10111 10112 10239 10240 10367 10368 10495 10496 10623 10624 10751 10752 10879 10880 11007 11008 11135 11136 11263 11264 11391 11392 11519 11520 11647 11648 11775 11776 11903 11904 12031 12032 12159 12160 12287 12288 12415 12416 12543 12544 12671 12672 12799 12800 12927 12928 13055 13056 13183 13184 13311 13312 13439 13440 13567 13568 13695 13696 13823 13824 13951 13952 14079 14080 14207 14208 14335 14336 14463 14464 14591 14592 14719 14720 14847 14848 14975 14976 15103 15104 15231 15232 15359 15360 15487 15488 15615 15616 15743 15744 15871 15872 15999 16000 16127 16128 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383" /> <UniformMass template="Vec3d" name="Mass" mass="1" totalmass="50" showGravityCenter="1" /> <CGLinearSolver template="GraphScattered" name="linear solver" iterations="40" tolerance="1e-009" threshold="1e-009" /> <TriangleSetTopologyContainer name="Topology Container" position="@loader.position" edges="@loader.edges" triangles="@loader.triangles" /> <TriangleSetTopologyModifier name="Topology Modifier" /> <TriangleSetTopologyAlgorithms template="Vec3d" name="Topology Algorithms" /> <TriangleSetGeometryAlgorithms template="Vec3d" name="Geometry Algorithms" showIndicesScale="0.005" showPointIndices="0" showEdgeIndices="0" showTriangleIndices="0" /> <TriangularBendingSprings template="Vec3d" name="FEM-Bend" rayleighStiffness="0" stiffness="300" damping="1" /> <TriangularFEMForceField template="Vec3d" name="FEM" rayleighStiffness="0" method="large" poissonRatio="0.45" youngModulus="100" damping="0" /> <TTriangleModel template="Vec3d" name="models" selfCollision="0" /> <OglModel template="ExtVec3f" name="Visual" material="Default Diffuse 1 0 1 0 1 Ambient 1 0 0.2 0 1 Specular 0 0 1 0 1 Emissive 0 0 1 0 1 Shininess 0 45 " primitiveType="DEFAULT" blendEquation="GL_FUNC_ADD" sfactor="GL_SRC_ALPHA" dfactor="GL_ONE_MINUS_SRC_ALPHA" /> <IdentityMapping template="Vec3d,ExtVec3f" name="Mapping" input="@." output="@Visual" /> <PlaneForceField template="Vec3d" name="planeFF0" normal="0 1 0" /> <NewmarkImplicitSolver name="newmarkImplicitSolver5" /> <ConstantForceField template="Vec3d" name="constantFF0" points="8240 8264" forces="-1000 -1000 0 1000 -1000 0" /> </Node> </Node>
The low-resolution mesh: https://gist.github.com/zbounik/1f7749322f1f53084a0740b97e20d80e
The high-resolution mesh: https://gist.github.com/zbounik/908863a3c064069ad37c6bbe4d0ef955At a steady state, the deformation in the coarse simulation do not correspond to the fine simulation.
In fact I expect the coarse simulation to drive the fine simulation. I would appreciate if you kindly give me some hints to solve this problem.
Best regards,
Zahra
9 March 2017 at 22:25 in reply to: [SOLVED] How to generate one specific deformation in two different mesh resolutions? #8765ZahraBlockedDear Hugo,
Thank you very much for your reply. I am trying to share the scene here. I simply copied the contents of the scene here, and added the link of the files as a github link, But I receive this message all the time: *** Forbidden. Contains contacts. Message seems to be spam. ***
I am sorry for this but could you please tell me what is the problem?
Best regards,
Zahra
22 February 2017 at 23:42 in reply to: [SOLVED] How to generate one specific deformation in two different mesh resolutions? #8680ZahraBlockedI have sent some scene files by email. Thank you for your help.
Cheers,
Zahra
ZahraBlockedYes, Thank you.
ZahraBlockedHi Hugo,
Thank you for the quick reply and sorry for the delay in my response; I always try to go further based on your hints and then reply with more feedback.
Yes I used v16.08 and I did not activate image plugin.
Since your reply, I tried to build v16.12, and I activate flexible and image plugins. I received the following error:v16.12\src\applications\plugins\flexible\quadrature\GaussPointSmoother.h(60): error C2899: typename cannot be used outside a template declaration
I fixed the problem by deleting the “typename” from the GaussPointSmoother.h, using the hint in the link below:
And sofa built successfully.
ZahraBlockedHi Guillaume,
Yes, I added it. After the configuration, all paths relative to boost (including BOOST_INCLUDE_DIR) are truly added, except one for “Boost_DIR”. I added its path again, but after configuring, it again shows “Boost_DIR-NOTFOUND”.
Any way, it is mentioned that SOFA includes miniboost, but without installing boost, cmake asks for installing it.
Thanks for your help in advance,
ZahraZahraBlockedHi Guillaume,
I also have the same problem. I followed the documentation for building sofa. I am using Win 7, 64 bits- VS 2013- Qt 5.6, boost 1.6 and cmake 3.6.2. I also unzipped the external libraries folders into the source folder.
There is no error in cmake. The project is built without any error, but I can not launch Runsofa and Modeler. When I try to launch Modeler I receive this error :
boost_system-vc120-mt-gd-1_60.dll is missing from your computer. Try reinstalling the program to fix this problem.
ZahraBlockedHi Hugo,
Yes, this is my answer. Thank you for your explanation.
Best,
Zahra
ZahraBlockedI will appreciate if anyone helps me regarding this issue.
ZahraBlockedDear Hugo,
Yes it is really nice to hear that. I always feel the lack of such helpful documentation. Sometimes I just get some results without knowing the mathematical background and also the relation of components to each other.
Can I have further details on the relation between “TriangularFEMForecefield”, “triangularBendingSprings”, “EulerImplicitSolver” and “CGLinearSolver”? More specifically, How “triangularBendingSprings” is related to the other components?
Thank you very much for your support.
Best,
ZahraZahraBlockedDear Rosalie,
Thank you very much for this thorough explanation. Now I understand it better.
Best regards,
Zahra
ZahraBlockedDear Hugo,
In SOFA modeler I did these changes but the problem existed. Then I add pointsDataFields=”MechObj.force” directly in the file of the scene and now it works. Thanks a lot for your kind help.
Best,
Zahra
ZahraBlockedDear Hugo,
I have sent it to your email. The subject is “exporting forcefields”.
Thank you very much.Zahra
ZahraBlockedDear Hugo,
Thank you for your help. I think something is wrong in my scene. When I apply your suggestion, it is unsaved when I reopen the VTKExporter. I should put a time to figure out the problem. I will let you know as soon as I succeed.
Best,
ZahraZahraBlockedDear Hugo,
Thank you for your kind reply.
I link the “PointsDataFields” in VTKExporter to the “force” data in my MechanicalObject by this command: “@MechObj.force”. But VTKExporter again exports the positions and not the forces.
Do I use a true procedure or Should I make any other changes?Thank you.
ZahraZahraBlockedDear Guillaume,
I changed my Visual studio from 2013 to 2012 and many of my problems solved.
Thank you for more information. I am going to use the new version of SOFA in the near future.
Best,
ZahraZahraBlockedDear Hugo,
Thank you for following up and Sorry for the late reply, other problems distracted me for a while.
No I am still looking for it. What I mean by force field is the force that is applied to each node. I think it is the same force I can see in the run window by checking forcefields. Using VTK exporter and choosing PointsDataFields gives me the positions of the nodes and not the forces, or maybe I still do not know how to use it correctly for my purpose.
Best regards,
ZahraZahraBlocked1. This component is not in my SOFA components. Which option in cmake should I choose to build this component?
2. My mesh is so high resolution, and I want to drag the same vertice to exactly the same certain extent each time that I animate the scene. Using Shift+click behaviour allows to drag every vertice to every extent.
ZahraBlockedDear Alex,
Thank you for your reply. Yes my second question was related to the first one. I do not have any knowledge on Python, so, Based on your suggestion I added StiffSpringForceField component to the root node, however I do not know how to add the rest and initial position in the component.
1. In Index property, I can insert just one value for each index. How can I insert (x,y,z) positions of desired points in StiffSpringForceField’s property? For example, how can I define a spring with one end on the (x,y,z)=(0,0,0) from the planeforcefield and the other end on (x,y,z)=(0,0,1) of my deformable object?
2. If I want to define another spring between a point on my object and the 3D position of the mouse, how and where should I define the 3D position of the mouse?
Best,
Zahra
-
AuthorPosts