资源简介
VTK8.1.0 windows编译版,不想自己cmake编译的可以参考
用于pcl的TKV重新编译,支持QT
代码片段和文件信息
/*=========================================================================
Module: verdict_test.cpp
Copyright (c) 2006 Sandia Corporation.
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*
*
* verdict_test.cpp provides routines for testing the quality metrics code
*
* This file is part of VERDICT
*
*/
#define VERDICT_EXPORTS
#include “verdict.h“
#include “v_vector.h“
#include
#include
#include
#include
#include
using namespace std;
#define MAX_NODES_PER_ELEMENT 27
#define MAX_TESTS_PER_ELEMENT 20
#ifdef VERDICT_USE_FLOAT
#define VERDICT_SIGNIFICANT_FIG 7 // 7 significant figures for floats
#else
#define VERDICT_SIGNIFICANT_FIG 15 // 15 significant figures for doubles
#endif
struct test_case
{
const char* testname;
VerdictFunction function[MAX_TESTS_PER_ELEMENT];
int num_nodes;
// note: the 1st dim. of coords must bigger than the maximum num_nodes
// for any one element being tested
double coords[MAX_NODES_PER_ELEMENT][3];
double answer[MAX_TESTS_PER_ELEMENT];
};
int main( )
{
// all test cases go here
test_case testcases[] = {
/*
{
“edge calc 1“
{v_edge_length 0}
2
{ { 000 } {111} }
{ 1.732050807568877 0 }
}
{
“edge calc 2“
{v_edge_length 0 }
2
{ { 000 } { 100 } }
{ 1.0 0 }
}
{
“edge calc 3“
{v_edge_length 0 }
2
{ { 000 } { 000 } }
{ 0 0 }
}
{
“simple wedge“
{v_wedge_volume 0}
6
{ { 000} {-110} {-100} {001} {-111} {-101} }
{ 0.5 0 }
}
{
“singularity wedge“
{v_wedge_volume 0}
6
{ {000} {000} {000} {000} {000} {000} }
{ 0 }
}
{
“simple tri“
{ v_tri_area v_tri_minimum_angle v_tri_maximum_angle v_tri_condition
v_tri_shape v_tri_shape_and_size v_tri_distortion 0}
3
{
{000}
{500}
{2.5 4.330127 0}
}
{ 0000000}
}
{
“singular tri“
{v_tri_area v_tri_aspect_ratio v_tri_condition
v_tri_distortion v_tri_minimum_angle v_tri_maximum_angle
v_tri_relative_size_squared v_tri_shape v_tri_shape_and_size
0}
3
{
{000}
{0.50.86602540370}
{100} }
{ 123 1234 1234 1234 1234 1234 1234 1234 12340}
}
{
“simple quad“
{ v_quad_skew 0}
4
{
{000}
{100}
{170}
{070 }
}
{ 1.3333333333333333333 0 }
}
{
“simple quad“
{ v_quad_aspect_ratio v_quad_skew v_quad_taper v_quad_warpage v_quad_area
v_quad_stretch v_quad_minimum_angle v_quad_maximum_angle
v_quad_condition v_quad_jacobian
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-08-30 11:32 bin\
文件 112128 2020-08-30 01:37 bin\QVTKWidgetPlugin-gd.dll
文件 37376 2020-08-30 01:11 bin\QVTKWidgetPlugin.dll
文件 232960 2020-08-30 01:37 bin\vtkalglib-8.1-gd.dll
文件 124928 2020-08-30 01:11 bin\vtkalglib-8.1.dll
文件 2764288 2020-08-30 01:55 bin\vtkChartsCore-8.1-gd.dll
文件 841216 2020-08-30 01:30 bin\vtkChartsCore-8.1.dll
文件 363008 2020-08-30 01:44 bin\vtkCommonColor-8.1-gd.dll
文件 97280 2020-08-30 01:19 bin\vtkCommonColor-8.1.dll
文件 459776 2020-08-30 01:44 bin\vtkCommonComputationalGeometry-8.1-gd.dll
文件 144896 2020-08-30 01:19 bin\vtkCommonComputationalGeometry-8.1.dll
文件 13772800 2020-08-30 01:40 bin\vtkCommonCore-8.1-gd.dll
文件 2674176 2020-08-30 01:15 bin\vtkCommonCore-8.1.dll
文件 8413184 2020-08-30 01:44 bin\vtkCommonDataModel-8.1-gd.dll
文件 2721280 2020-08-30 01:18 bin\vtkCommonDataModel-8.1.dll
文件 1572864 2020-08-30 01:45 bin\vtkCommonExecutionModel-8.1-gd.dll
文件 520192 2020-08-30 01:19 bin\vtkCommonExecutionModel-8.1.dll
文件 317952 2020-08-30 01:40 bin\vtkCommonMath-8.1-gd.dll
文件 117760 2020-08-30 01:16 bin\vtkCommonMath-8.1.dll
文件 419840 2020-08-30 01:41 bin\vtkCommonMisc-8.1-gd.dll
文件 91648 2020-08-30 01:16 bin\vtkCommonMisc-8.1.dll
文件 295936 2020-08-30 01:40 bin\vtkCommonSystem-8.1-gd.dll
文件 90624 2020-08-30 01:16 bin\vtkCommonSystem-8.1.dll
文件 425472 2020-08-30 01:41 bin\vtkCommonTransforms-8.1-gd.dll
文件 163840 2020-08-30 01:16 bin\vtkCommonTransforms-8.1.dll
文件 415744 2020-08-30 01:37 bin\vtkDICOMParser-8.1-gd.dll
文件 95232 2020-08-30 01:11 bin\vtkDICOMParser-8.1.dll
文件 907776 2020-08-30 01:53 bin\vtkDomainsChemistry-8.1-gd.dll
文件 288768 2020-08-30 01:28 bin\vtkDomainsChemistry-8.1.dll
文件 110592 2020-08-30 01:37 bin\vtkEncodeString-8.1.exe
文件 732672 2020-08-30 01:40 bin\vtkexoIIc-8.1-gd.dll
............此处省略3433个文件信息
评论
共有 条评论