Basic

Video

If you can’t see a YouTube video? click here instead.

How to make this demo?

Put two files into a folder data.

base.vxa

<VXA Version="1.1">
<Simulator>
    <RecordHistory>
        <RecordStepSize>100</RecordStepSize>
        <RecordVoxel>1</RecordVoxel>
        <RecordLink>0</RecordLink>
    </RecordHistory>
    <StopCondition>
        <StopConditionFormula>
            <mtSUB>
            <mtVAR>t</mtVAR>
            <mtCONST>1</mtCONST>
            </mtSUB>
        </StopConditionFormula>
    </StopCondition>
</Simulator>
<VXC Version="0.94">
    <Lattice>
        <Lattice_Dim>0.01</Lattice_Dim>
    </Lattice>
    <Palette>
        <Material>
            <Name>Default</Name>
            <Display>
                <Red>1</Red>
                <Green>0</Green>
                <Blue>0</Blue>
                <Alpha>1</Alpha>
            </Display>
            <Mechanical>
                <MatModel>0</MatModel>
                <Elastic_Mod>1e+05</Elastic_Mod>
                <Fail_Stress>0</Fail_Stress>
                <Density>1e+3</Density>
                <Poissons_Ratio>0.35</Poissons_Ratio>
                <CTE>0</CTE>
                <MaterialTempPhase>0</MaterialTempPhase>
                <uStatic>1</uStatic>
                <uDynamic>0.8</uDynamic>
            </Mechanical>
        </Material>
    </Palette>
    <Structure Compression="ASCII_READABLE">
        <X_Voxels>1</X_Voxels>
        <Y_Voxels>1</Y_Voxels>
        <Z_Voxels>2</Z_Voxels>
        <Data>
            <Layer><![CDATA[0]]></Layer>
            <Layer><![CDATA[1]]></Layer>
        </Data>
    </Structure>
</VXC>
</VXA>

Note

Short Explanation

There are two layers: the 1st one has no element, and the 2nd one has a voxel made of the 1st material, so when the simulation starts, the voxel falls and bounces without any damping.

robot.vxd

<VXD>
</VXD>

Note

Short Explanation

Here we only need one robot, so nothing to customize.

For the meanings of the tags, please refer to VXA Tags.

Linux Command

After we prepared the data/ folder, we can run the program to get the visualization.

./Voxelyze3 -i data > a.history
./VoxCAD a.history

For the meanings of the executables, please refer to Run.