|
Output
|
Description & command
|
|
-- catenoid.src --
Catenoid c {
rotation-Z = 0.5; /* This is a comment a là C */
params {
c = 20;
}
};
-- command line --
volcompose -v catenoid.vol < catenoid.src
|
|
-- cube.src --
volgen cube -len 15 -rx 45d -v cube45.vol
Cube c {
rotation-X = 45d;
params {
len = 15;
}
};
-- command line --
volcompose -v cube.vol < cube.src
|
|
-- ellipsoid.src --
Ellipsoid e {
params { a = 5; b = 10; c = 15 }
/* This
is
a multi-line
comment. */
};
-- command line --
volcompose -v ellipsoid.vol < ellipsoid.src
|
|
-- rounded-cube.src --
RoundedCube rc {
rotation-X = 45d;
params { len = 15; }
};
-- command line --
volcompose -v rounded-cube.vol < rounded-cube.src
|
|
-- sphere.src --
Sphere s { params { r = 25; } };
-- command line --
volcompose -v sphere.vol < sphere.src
|
|
-- composition.src --
Cube c { params { len = 15; } };
Cube cx1 { rotation-X = 45d; params { len = 15; } };
Cube cx2 { rotation-X = 90d; params { len = 15; } };
Cube cx3 { rotation-X = 135d; params { len = 15; } };
Cube cy1 { rotation-Y = 45d; params { len = 15; } };
Cube cy2 { rotation-Y = 90d; params { len = 15; } };
Cube cy3 { rotation-Y = 135d; params { len = 15; } };
Cube cz1 { rotation-Z = 45d; params { len = 15; } };
Cube cz2 { rotation-Z = 90d; params { len = 15; } };
Cube cz3 { rotation-Z = 135d; params { len = 15; } };
-- command line --
volcompose -v composition.vol < composition.src
The main difference between volcompose and volgen is that volcompose can draw many figures
in the same volume file. In that case, the signature file has
no meaning (it is just the concatenation of the signatures of the different figures).
|