mirror of https://github.com/vitalif/openscad
Added transform-tests
parent
06001a4665
commit
23af865389
|
@ -0,0 +1,18 @@
|
|||
module mycyl() {
|
||||
cylinder(r1=10, r2=0, h=20);
|
||||
}
|
||||
|
||||
translate([25,0,0]) scale([1,2,0.5]) mycyl();
|
||||
translate([20,-30,0]) scale(0.5) mycyl();
|
||||
translate([0,-20,0]) rotate([90,0,0]) mycyl();
|
||||
rotate(v=[-1,0,0], a=45) mycyl();
|
||||
multmatrix([[1,0,0,-25],
|
||||
[0,1,0,0],
|
||||
[0,0,1,0],
|
||||
[0,0,0,1]]) mycyl();
|
||||
multmatrix([[1,0.4,0.1,-25],
|
||||
[0.4,0.8,0,-25],
|
||||
[0.2,0.2,0.5,0],
|
||||
[0,0,0,1]]) mycyl();
|
||||
|
||||
//FIXME: mirror()
|
|
@ -218,6 +218,7 @@ LIST(APPEND CGALPNGTEST_FILES
|
|||
${CMAKE_SOURCE_DIR}/../testdata/scad/features/rotate_extrude-tests.scad
|
||||
${CMAKE_SOURCE_DIR}/../testdata/scad/features/surface-tests.scad
|
||||
${CMAKE_SOURCE_DIR}/../testdata/scad/features/import_dxf-tests.scad
|
||||
${CMAKE_SOURCE_DIR}/../testdata/scad/features/transform-tests.scad
|
||||
${CMAKE_SOURCE_DIR}/../testdata/scad/features/color-tests.scad
|
||||
${CMAKE_SOURCE_DIR}/../testdata/scad/features/background-modifier.scad
|
||||
${CMAKE_SOURCE_DIR}/../testdata/scad/features/highlight-modifier.scad
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Loading…
Reference in New Issue