updated tests
This commit is contained in:
@@ -71,10 +71,8 @@ int main(int argc, char** argv) {
|
|||||||
vtkTess.SetColor(0.2, 0.8, 0.2); // Greenish tess
|
vtkTess.SetColor(0.2, 0.8, 0.2); // Greenish tess
|
||||||
|
|
||||||
// Position tessellated solid away from box using the PhysicalVolume
|
// Position tessellated solid away from box using the PhysicalVolume
|
||||||
Matrix4f trans = Matrix4f::Identity();
|
pvTess->SetPosition(Vector3f(5_m, 0, 0));
|
||||||
trans.block<3,1>(0,3) = Vector3f(5_m, 0, 0);
|
pvTess->Updated();
|
||||||
pvTess->SetMatrix(trans);
|
|
||||||
vtkTess.Update();
|
|
||||||
|
|
||||||
std::cout << "..:: Testing vtkSolidsTest ::.." << std::endl;
|
std::cout << "..:: Testing vtkSolidsTest ::.." << std::endl;
|
||||||
std::cout << "Box and Tessellated solids (placed via PhysicalVolumes) initialized." << std::endl;
|
std::cout << "Box and Tessellated solids (placed via PhysicalVolumes) initialized." << std::endl;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ using namespace uLib;
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
std::cout << "Creating ContainerBox..." << std::endl;
|
std::cout << "Creating ContainerBox..." << std::endl;
|
||||||
ContainerBox* box = new ContainerBox(Vector3f(1.0, 1.0, 1.0)); // 1x1x1 unit box
|
ContainerBox* box = new ContainerBox(Vector3f(1.0_m , 0.5_m, 1.0_m)); // 1x1x1 unit box
|
||||||
box->SetInstanceName("MyTestBox");
|
box->SetInstanceName("MyTestBox");
|
||||||
|
|
||||||
std::cout << "Creating VTK representation..." << std::endl;
|
std::cout << "Creating VTK representation..." << std::endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user