All public logs

From KitwarePublic
Jump to navigationJump to search

Combined display of all available logs of KitwarePublic. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).

Logs
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/HighlightBadCells (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestHighlightBadCells.png</div> ==HighlightBadCells.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkProperty.h> #include <vtkUnstructuredGrid.h> #include <vtkPolyData.h> #include <vtkThreshold.h> #include <vtkCellData.h> #include <vtkDoubleArray.h> #include <vtkDataSet.h> #include <vtkDataSetMapper.h> #include <vtkMeshQuality.h> #include <vtkSphereSource.h> #include <vtkT...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/Hull (content was: "==Hull.cxx== <source lang="cpp"> #include <vtkPoints.h> #include <vtkXMLPolyDataReader.h> #include <vtkXMLPolyDataWriter.h> #include <vtkSmartPointer.h> #include <vtkHull.h> int main(int argc, char *argv[]) { // Parse command line arguments if(argc != 2) { std::cout << "Required arguments: Filename" << std::endl; return EXIT_FAILURE; } vtkSmartPointer<vtkXMLPolyDataReader> reader = vtkSmartPointer<vtkXMLPolyDataReader>::New(); reader->SetFileName...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/ImplicitDataSetClipping (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestImplicitDataSetClipping.png</div> This example demonstrates how to clip one object with another. ==ImplicitDataSetClipping.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkVersion.h> #include <vtkActor.h> #include <vtkBox.h> #include <vtkCamera.h> #include <vtkCellData.h> #include <vtkClipPolyData.h> #include <vtkCubeSource.h> #include <vtkDataSetWriter.h> #include <vtkIdFilter.h> #include...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/ImplicitModeller (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_PolyData_TestImplicitModeller.png</div> ==ImplicitModeller.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkImplicitModeller.h> #include <vtkSphereSource.h> #include <vtkPolyData.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkProperty.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkContourFilter.h>...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/ImplicitPolyDataDistance (content was: "NOTE: This example requires version 5.9.20111206 or higher. <div class="floatcenter">File:VTK_Examples_Baseline_PolyData_TestImplicitPolyDataDistance.png</div> ==ImplicitPolyDataDistance.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkImplicitPolyDataDistance.h> #include <vtkActor.h> #include <vtkFloatArray.h> #include <vtkPointData.h> #include <vtkPolyDataMapper.h> #include <vtkProperty.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtk...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/InterpolateTerrain (content was: "This example samples a "terrain map" using two approaches. # Creates an image from the x,y points of the terrian and then uses vtkProbeFilter to interpolate the heights. # Uses vtkCellLocator to directly interpolate the terrain polydata. Note that the results differ when the point is not one of the original terrain points. This is because the image has quadrilateral elements and the polydata has triangles. As the resolution of the grid increases, the two results converge. ==...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/InterpolateMeshOnGrid (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_PolyData_TestInterpolateMeshOnGrid.png</div> This example resamples a mesh on a grid of points. ==InterpolateMeshOnGrid.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkProperty.h> #include <vtkDataSetMapper.h> #include <vtkSmartPointer.h> #include <vtkCellArray.h> #include <vtkPoints.h> #include <vtkTriangle.h> #include <vtkPolyData.h> #include <vtkPointData.h> #include <vtkLine.h> #include <vtkImageData.h>...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/IntersectionPolyDataFilter (content was: "NOTE: This example requires version 5.9.20111206 or higher. <div class="floatcenter">File:VTK_Examples_Baseline_PolyData_TestIntersectionPolyDataFilter.png</div> ==IntersectionPolyDataFilter.cxx== <source lang="cpp"> #include <vtkActor.h> #include <vtkIntersectionPolyDataFilter.h> #include <vtkPolyDataMapper.h> #include <vtkProperty.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> #include <vtkSphe...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/IterateOverLines (content was: "(If anyone can explain why the commented section doesn't work the same as the uncommented section, or fix it, that would be great.) ==IterateOverLines.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkLine.h> #include <vtkCellArray.h> #include <vtkPolyData.h> #include <vtkPoints.h> int main(int, char *[]) { double origin[3] = {0.0, 0.0, 0.0}; double p0[3] = {1.0, 0.0, 0.0}; double p1[3] = {0.0, 1.0, 0.0}; double p2[3] = {0.0, 1.0, 2.0}; double p3[3...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/KochanekSpline (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestKochanekSpline.png</div> ==KochanekSpline.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPointSource.h> #include <vtkPoints.h> #include <vtkKochanekSpline.h> #include <vtkParametricSpline.h> #include <vtkParametricFunctionSource.h> #include <vtkPolyData.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInte...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/LinearExtrusion (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_PolyData_TestLinearExtrusion.png</div> This example creates some text, extrudes it to make it 3D. ==LinearExtrusion.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkVectorText.h> #include <vtkLinearExtrusionFilter.h> #include <vtkTriangleFilter.h> #include <vtkDataSetMapper.h> #include <vtkActor.h> #include <vtkProperty.h> #include <vtkCamera.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #in...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/MaskPoints (content was: "<div class="floatright">300px</div> ==MaskPoints.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMaskPoints.h> #include <vtkPointSource.h> #include <vtkPolyDataMapper.h> #include <vtkProperty.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkVertexGlyphFilter.h> int main(int, char*[]) { // Create a set of points vtkSmartPointer<vtkPointS...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/MergePoints (content was: "Add new points if they are unique. You must add the original points first. After that, the locator will only add unique points. ==MergePoints.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMath.h> #include <vtkMergePoints.h> #include <vtkPointSource.h> #include <vtkPoints.h> #include <vtkPolyData.h> int main(int, char *[]) { // Create a set of points vtkSmartPointer<vtkPointSource> pointsSource = vtkSmartPointer<vtkPointSource>::New(); pointsS...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/MergeSelections (content was: "<div class="floatright">400px</div> * Fixed by Mirko Heuegger ==MergeSelections.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkInformation.h> #include <vtkPointSource.h> #include <vtkExtractSelection.h> #include <vtkSelection.h> #include <vtkSelectionNode.h> #include <vtkPolyData.h> #include <vtkUnstructuredGrid.h> #include <vtkIdTypeArray.h> #include <vtkDataSetMapper....")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/MeshQuality (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestMeshQuality.png</div> This example uses one of many selectable methods to determine the quality of a mesh. In this case, we have selected to use the area of the triangles. We show how to retrieve the quality metric computed on each triangle after the process is completed. ==MeshQuality.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkPolyData.h> #include <vtkPointData.h> #include <vtkCellData.h>...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/MultiBlockMergeFilter (content was: "==MultiBlockMergeFilter.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkPoints.h> #include <vtkPolyData.h> #include <vtkSphereSource.h> #include <vtkMultiBlockMergeFilter.h> #include <vtkMultiBlockDataSet.h> int main(int, char *[]) { vtkSmartPointer<vtkSphereSource> sphereSource1 = vtkSmartPointer<vtkSphereSource>::New(); sphereSource1->Update(); vtkSmartPointer<vtkSphereSource> sphereSource2 = vtkSmartPointer<vtkSp...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/NullPoint (content was: "==NullPoint.cxx== <source lang="cpp"> #include <vtkPoints.h> #include <vtkPointData.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkFloatArray.h> int main(int, char *[]) { vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New(); points->InsertNextPoint(1,1,1); points->InsertNextPoint(2,2,2); points->InsertNextPoint(3,3,3); vtkSmartPointer<vtkPolyData> polydata = vtkSmartPointer<vtkPolyData>::New(); polydata->SetPoints(po...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/Outline (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestOutline.png</div> This example shows how to draw the outline of the dataset. :''See also: [[../../Utilities/BoundingBox]] and [[../../Visualization/CubeAxesActor2D]]'' ==Outline.cxx== <source lang="cpp" highlight="11,34-48,62"> #include <vtkVersion.h> #include <vtkSphereSource.h> #include <vtkProperty.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h>...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/ParametricSpline (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestParametricSpline.png</div> ==ParametricSpline.cxx== <source lang="cpp" highlight="17-39,44"> #include <vtkSmartPointer.h> #include <vtkCellArray.h> #include <vtkCellData.h> #include <vtkDoubleArray.h> #include <vtkPoints.h> #include <vtkParametricSpline.h> #include <vtkPolyData.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindow...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PointCellIds (content was: "==PointCellIds.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkIdFilter.h> #include <vtkIdTypeArray.h> #include <vtkPointData.h> #include <vtkCellData.h> int main(int, char *[]) { vtkSmartPointer<vtkSphereSource> sphereSource = vtkSmartPointer<vtkSphereSource>::New(); sphereSource->Update(); std::cout << "There are " << sphereSource->GetOutput()->GetNumberOfPoints() << " points." << std::endl; std::cout << "There...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PointInsideObject (content was: "<div class="floatright">File:PointsInsideObject.png</div> This example creates a cube at the origin with side 1. Then it checks if the points are inside the cube. There is one point inside, one in the border and one outside. The answer for the first one should be yes, and for the other two, no. Then render the cube and the points to see the result. ==PointInsideObject.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkPolyData.h> #include <vtkPointData.h> #inc...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PointInsideObject2 (content was: "This example creates a volume (convex hull-ish) out of a mesh object. It then uses FindCell (which determines if a point is inside of a cell) to determine if a point is inside of any of the 3D cells created by Delaunay3D or not. This could potentially lead to false positives - that is, points that are outside the mesh but inside the convex hull. <div class="floatcenter">File:VTK_Examples_Baseline_PolyData_TestPointInsideObject2.png</div> ==PointInsideObject2.cxx== <source l...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PointLocator (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestPointLocator.png</div> Create a point locator for a set of points. The 'n' (next) and 'p' (previous) keys change the resolution of the cells. ==PointLocator.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkObjectFactory.h> #include <vtkPointSource.h> #include <vtkPolyData.h> #include <vtkPointLocator.h> #include <vtkInteractorStyleTrackb...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PointLocatorRadius (content was: "==PointLocatorRadius.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkIdList.h> #include <vtkPolyDataMapper.h> #include <vtkObjectFactory.h> #include <vtkPointSource.h> #include <vtkPolyData.h> #include <vtkPointLocator.h> int main(int, char *[]) { vtkSmartPointer<vtkPointSource> pointSource = vtkSmartPointer<vtkPointSource>::New(); pointSource->SetNumberOfPoints(400); pointSource->Update(); // Create the tree vtkSmartPointer<vtkPointLocato...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PointLocatorVisualization (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestPointLocatorVisualization.png</div> The idea of this example is to navigate levels of a uniform spatial tree (vtkPointLocator) using a slider. Note: it is not desirable to have PointsPerBucket set "too small". This is because at some point, refining a bucket will result in each cell in that bucket to also be in the bucket's children. This only wastes memory and computation. The value that is "too small" is...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PointSource (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestPointSource.png</div> ==PointSource.cxx== <source lang="cpp"> #include <vtkPointSource.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> int main(int, char *[]) { // Create a point cloud vtkSmartPointer<vtkPointSource> pointSource = vtkSmartPointer<vtk...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PointsProjectedHull (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestPointsProjectedHull.png</div> This example demonstrates how to find the 2D convex hull of a point set projected onto any of the coordinate planes (in this case, we choose the YZ plane (projection along the x axis) ). ==PointsProjectedHull.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkCamera.h> #include <vtkCellArray.h> #include <vtkPointSourc...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PolyDataCellNormals (content was: "This example shows how to add normals to vertices. This is identical to adding normals to any type of cells. The only difference from Add/Get Normals to/from a Polydata is <source lang="cpp"> polydata->GetPointData()->SetNormals(PointNormalsArray); </source> <source lang="cpp"> vtkSmartPointer<vtkDoubleArray> PointNormalsRetrieved = vtkDoubleArray::SafeDownCast(polydata->GetPointData()->GetNormals()); </source> are changed to <source lang="cpp"> polydata->GetCellData(...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PolyDataConnectivityFilter LargestRegion (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestConnectivity.png</div> This example keeps the largest connected region of a mesh. Note that this is based on the number of points, not the actual area of the region. * Contributed by: Jinyoung Hwang ==PolyDataConnectivityFilter_LargestRegion.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkPolyDataConnectivityFilter.h> #include <vtkPolyDataMapper.h> #include <vt...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PolyDataConnectivityFilter SpecifiedRegion (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestConnectivity.png</div> This example creates two spheres and combines them together into one polydata. The vtkPolyDataConnectivityFilter is used to find the two spheres as they are separate regions (disconnected). If region 0 is selected, the small sphere is extracted. If region 1 is selected, the large sphere is extracted. ==PolyDataConnectivityFilter_SpecifiedRegion.cxx== <source lang="cpp"> #include <vtkSmar...")
  • 03:13, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PolyDataContourToImageData (content was: "* Contributed by: Lars Friedrich == Brief Description == This example generates a sphere, cuts it with a plane and, therefore, generates a circlular contour (vtkPolyData). Subsequently a binary image representation (vtkImageData) is extracted from it. Internally vtkPolyDataToImageStencil and vtkLinearExtrusionFilter are utilized. Both the circular poly data (circle.vtp) and the resultant image (labelImage.mhd) are saved to disk. '''NOTE''': Similarily to example VTK/Exampl...")
  • 03:12, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PolyDataExtractNormals (content was: "This demo looks for multiple types of normals in a polydata and generates them if they do not exist. ==PolyDataExtractNormals.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkCellData.h> #include <vtkDoubleArray.h> #include <vtkFloatArray.h> #include <vtkPoints.h> #include <vtkPolyData.h> #include <vtkPolyDataNormals.h> #include <vtkPointData.h> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkXMLPolyDataReader.h> void TestPointNormals(vtkP...")
  • 03:12, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PolyDataGetPoint (content was: "This example demonstrates how to obtain the coordinates of a point in a vtkPolyData object. * Suggested by Sara Rolfe ==PolyDataGetPoint.cxx== <source lang="cpp"> #include <vtkSphereSource.h> #include <vtkSmartPointer.h> #include <vtkPolyData.h> int main(int, char*[]) { // Create a sphere vtkSmartPointer<vtkSphereSource> sphereSource = vtkSmartPointer<vtkSphereSource>::New(); sphereSource->Update(); vtkPolyData* polydata = sphereSource->GetOutput(); // Write...")
  • 03:12, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PolyDataIsoLines (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_PolyData_TestPolyDataIsoLines.png</div> ==PolyDataIsoLines.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkCellArray.h> #include <vtkFloatArray.h> #include <vtkPointData.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkXMLPolyDataReader.h> #include <vtkXMLPolyDataWriter.h> #include <vtkCamera...")
  • 03:12, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PolyDataPointNormals (content was: "#REDIRECT [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/PolyDataPointNormals/ PolyDataPointNormals]")
  • 03:12, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PolyDataPointSampler (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/PolyDataPointSampler PolyDataPointSampler] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
  • 03:12, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PolyDataToImageData (content was: "* Contributed by: Lars Friedrich == Brief Description == This example generates a sphere (prerequisite: closed surface of type vtkPolyData) and converts it into volume representation (vtkImageData) where the foreground voxels are 255 (inside) and the background voxels are 0 (outside). Internally vtkPolyDataToImageStencil is utilized. The resultant image is saved to disk in metaimage file format (SphereVolume.mhd). Image:SphereAndImageDataOverlay3D.png ==PolyDataToImageD...")
  • 03:12, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PolyDataToUnstructuredGrid (content was: "There is not a filter whose sole purpose is converting a vtkPolyData to a vtkUnstructuredGrid. However, the append filter can accept any type of input, and produces a vtkUnstructuredGrid, so we can use it for this purpose. ==PolyDataToUnstructuredGrid.cxx== <source lang="cpp"> #include <vtkAppendFilter.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include...", and the only contributor was "Daviddoria" (talk))
  • 03:12, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PolygonalSurfaceContourLineInterpolator (content was: "<div class="floatright">300px</div> ==PolygonalSurfaceContourLineInterpolator.cxx== <source lang="cpp" highlight=86-106> #include <vtkVersion.h> #include "vtkSmartPointer.h" #include "vtkActor.h" #include "vtkCamera.h" #include "vtkCellArray.h" #include "vtkImageDataGeometryFilter.h" #include "vtkPoints.h" #include "vtkPolyData.h" #include "vtkPolyDataCollection.h" #include "vtkPolyDataMapper.h" #includ...")
  • 03:12, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/PolygonalSurfacePointPlacer (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestPointPlacer.png</div> This example demonstrates how to draw curves on a surface. ==PolygonalSurfacePointPlacer.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkCommand.h> #include <vtkProperty.h> #include <vtkContourWidget.h> #include <vtkSphereSource.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInterac...")
  • 03:12, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/ProcrustesAlignmentFilter (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestProcrustesAlignmentFilter.png</div> This example aligns three objects (deformed spheres) using the Procrustes algorithm. The original shapes are shown on the left. The alignment using a rigid transform is shown in the middle, and the alignment using a similarity transform is shown on the right. ==ProcrustesAlignmentFilter.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <...")
  • 03:12, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/QuantizePolyDataPoints (content was: "<div class="floatright">300px</div> This example demonstrates how to "snap" points onto a discrete grid. This example rounds the coordinates of each point the the nearest .1 ==QuantizePolyDataPoints.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkQuantizePolyDataPoints.h> #include <vtkPoints.h> #include <vtkPolyData.h> #include <vtkPointSource.h> #include <vtkPolyDataMapper.h> #include <...")
  • 03:12, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/Reflection (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestReflectionFilter.png</div> '''Note:''' This example uses {{class|vtkReflectionFilter}}, which outputs a {{class|vtkDataObject}}. For an example that returns a {{class|vtkPolyData}}, see ''[[../../Filtering/TransformPolyData|TransformPolyData]]''. ==Reflection.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkDataSetMapper.h> #include <vtkProperty.h> #include <vtkReflectionFilter.h> #include <...")
  • 03:12, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/PolyData/RemoveVertices (content was: "==RemoveVertices.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkXMLPolyDataReader.h> #include <vtkXMLPolyDataWriter.h> #include <vtkSmartPointer.h> #include <vtkCellData.h> #include <vtkCellArray.h> #include <vtkPolyData.h> int main ( int argc, char *argv[] ) { if (argc < 2) { std::cout << "Usage: " << argv[0] << " filename.vtp" << std::endl; return EXIT_FAILURE; } std::string filename = argv[1]; // Read all the data from the file vtkSm...")
  • 03:10, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/StaticImage (content was: "<div class="floatright">300px</div> This example displays an image in a non-interact-able window. ==StaticImage.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageViewer2.h> #include <vtkJPEGReader.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> int main(int argc, char* argv[]) { // Verify input arguments if ( argc != 2 ) { std::cout <<...")
  • 03:10, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/NormalizeVector (content was: "==NormalizeVector.cxx== <source lang="cpp"> #include "vtkMath.h" int main(int, char*[]) { double a[3] = {100.0, 2.0, 1.0}; std::cout << a[0] << " " << a[1] << " " << a[2] << std::endl; vtkMath::Normalize(a); std::cout << a[0] << " " << a[1] << " " << a[2] << std::endl; return EXIT_SUCCESS; } </source> {{VTKCMakeLists|{{SUBPAGENAME}}}}")
  • 03:10, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/PerpendicularVector (content was: "==PerpendicularVector.cxx== This example finds a vector perpendicular to the x axis (1,0,0). Since theta is specified as 0, the negative z axis (0, 0, -1) is returned. <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMath.h> int main(int, char *[]) { double x[3] = {1,0,0}; double y[3]; vtkMath::Perpendiculars(x, y, NULL, 0); std::cout << "y: " << y[0] << " " << y[1] << " " << y[2] << std::endl; return EXIT_SUCCESS; } </source> {{VTKCMakeLists|{{SU...")
  • 03:10, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/VectorDot (content was: "Note that the filter maps the values to a scalar range. In the example, the values of the dot products are 1, .707, 0 The filter outputs 1, .414, -1 because the default scalar range that the filter maps the values to is [-1,1]. ==VectorDot.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkPoints.h> #include <vtkPolyData.h> #include <vtkFloatArray.h> #include <vtkPointData.h> #include <vtkVectorDot.h> // For compatibility with new...")
  • 03:10, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/VectorNorm (content was: "==VectorNorm.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkPoints.h> #include <vtkPolyData.h> #include <vtkFloatArray.h> #include <vtkPointData.h> #include <vtkVectorNorm.h> // For compatibility with new VTK generic data arrays #ifdef vtkGenericDataArray_h #define InsertNextTupleValue InsertNextTypedTuple #endif int main(int, char *[]) { vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New(); points->Insert...")
  • 03:10, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Matlab/MatlabEngineFilter (content was: "This example currently does nothing. ==MatlabEngineFilter.cxx== <source lang="cpp"> //need to set VTK_USE_MATLAB_MEX ON #include <vtkSmartPointer.h> #include <vtkMatlabEngineFilter.h> int main(int argc, char *argv[]) { vtkSmartPointer<vtkMatlabEngineFilter> matlabFilter = vtkSmartPointer<vtkMatlabEngineFilter>::New(); return EXIT_SUCCESS; } </source> {{VTKCMakeLists|{{SUBPAGENAME}}}}")
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)