how to draw a cube in a xml file?

edited March 2017 in DualSPHysics_v4.0
draw a cube from original coordinate in xml file and then move it according to a vector and then rotate
it according to an angle. then load it to paraview to see its figure, but it seem to be out of shape, briefly it not like a cube, whats the problem?

Comments

  • can anybody tell something about it to me ? I will appreciate for it.
  • can you please send an image of the resulting object to understand better your problem?
  • Perhaps the best option is to load an external file (STL or PLY) of a cube and then you can use the options of:
    drawfilestl file="File.stl"
    drawmove x="0.5" y="0" z="0"
    drawrotate angx="10" angy="15" angz="30"
    drawscale x="1" y="1" z="0.8"

    Note that the same values you have to use in drawmove, drawrotate and drawscale are the values you use in paraview for scale, orientation...
    So you can load the external cube in Paraview and apply the changes to locate it where you want, then copy those values in the XML

    Regards
  • load an external file of an object ,then it will be represented by surface particles with no particles inside it, is it the truth?
  • Yes, so you have to use "fill" options to fill it with particles.

    Alex
Sign In or Register to comment.