• 大小: 59.23MB
    文件类型: .zip
    金币: 2
    下载: 6 次
    发布日期: 2022-08-01
  • 语言: 其他
  • 标签: VTK库  

资源简介

该库是基于VTK8.0.0源码编译而成的64位运行库,有需要的可以下载下来后释放到“PCL 1.8.1\3rdParty\VTK”目录下即可使用VTK了,避免编译VTK的步骤

资源截图

代码片段和文件信息

/*=========================================================================

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  2019-06-03 11:23  bin\
     文件     3057152  2019-06-03 11:05  bin\vtkChartsCore-8.0-gd.dll
     文件      943104  2019-06-03 11:20  bin\vtkChartsCore-8.0.dll
     文件      473600  2019-06-03 10:58  bin\vtkCommonColor-8.0-gd.dll
     文件      122368  2019-06-03 11:13  bin\vtkCommonColor-8.0.dll
     文件      446464  2019-06-03 10:58  bin\vtkCommonComputationalGeometry-8.0-gd.dll
     文件      151552  2019-06-03 11:13  bin\vtkCommonComputationalGeometry-8.0.dll
     文件    12207104  2019-06-03 10:57  bin\vtkCommonCore-8.0-gd.dll
     文件     3078656  2019-06-03 11:11  bin\vtkCommonCore-8.0.dll
     文件     8607232  2019-06-03 10:58  bin\vtkCommonDataModel-8.0-gd.dll
     文件     2652672  2019-06-03 11:13  bin\vtkCommonDataModel-8.0.dll
     文件     1742848  2019-06-03 10:59  bin\vtkCommonExecutionModel-8.0-gd.dll
     文件      579584  2019-06-03 11:14  bin\vtkCommonExecutionModel-8.0.dll
     文件      338944  2019-06-03 10:57  bin\vtkCommonMath-8.0-gd.dll
     文件      128000  2019-06-03 11:11  bin\vtkCommonMath-8.0.dll
     文件      566272  2019-06-03 10:57  bin\vtkCommonMisc-8.0-gd.dll
     文件      114688  2019-06-03 11:12  bin\vtkCommonMisc-8.0.dll
     文件      330240  2019-06-03 10:57  bin\vtkCommonSystem-8.0-gd.dll
     文件       98816  2019-06-03 11:11  bin\vtkCommonSystem-8.0.dll
     文件      410624  2019-06-03 10:57  bin\vtkCommonTransforms-8.0-gd.dll
     文件      173056  2019-06-03 11:12  bin\vtkCommonTransforms-8.0.dll
     文件      573952  2019-06-03 10:55  bin\vtkDICOMParser-8.0-gd.dll
     文件      131072  2019-06-03 11:09  bin\vtkDICOMParser-8.0.dll
     文件     1034752  2019-06-03 11:04  bin\vtkDomainsChemistry-8.0-gd.dll
     文件      322048  2019-06-03 11:19  bin\vtkDomainsChemistry-8.0.dll
     文件       33792  2019-06-03 11:09  bin\vtkEncodeString-8.0.exe
     文件      566272  2019-06-03 11:00  bin\vtkFiltersAMR-8.0-gd.dll
     文件      145920  2019-06-03 11:16  bin\vtkFiltersAMR-8.0.dll
     文件    10385408  2019-06-03 11:00  bin\vtkFiltersCore-8.0-gd.dll
     文件     3290624  2019-06-03 11:16  bin\vtkFiltersCore-8.0.dll
     文件     1976320  2019-06-03 11:02  bin\vtkFiltersExtraction-8.0-gd.dll
............此处省略3400个文件信息

评论

共有 条评论

相关资源