VTK
9.0.1
Common
ComputationalGeometry
vtkBilinearQuadIntersection.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkLagrangianParticleTracker.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
24
#ifndef vtkBilinearQuadIntersection_h
25
#define vtkBilinearQuadIntersection_h
26
27
#include "vtkCommonComputationalGeometryModule.h"
// For export macro
28
#include "
vtkVector.h
"
29
30
class
VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT
vtkBilinearQuadIntersection
31
{
32
public
:
33
vtkBilinearQuadIntersection
(
const
vtkVector3d
& pt00,
const
vtkVector3d
& Pt01,
34
const
vtkVector3d
& Pt10,
const
vtkVector3d
& Pt11);
35
vtkBilinearQuadIntersection
() =
default
;
36
38
41
double
*
GetP00Data
();
42
double
*
GetP01Data
();
43
double
*
GetP10Data
();
44
double
*
GetP11Data
();
45
//}@
46
51
vtkVector3d
ComputeCartesianCoordinates
(
double
u,
double
v);
52
56
bool
RayIntersection
(
const
vtkVector3d
& r,
const
vtkVector3d
& d,
vtkVector3d
& uv);
57
58
private
:
59
vtkVector3d
Point00;
60
vtkVector3d
Point01;
61
vtkVector3d
Point10;
62
vtkVector3d
Point11;
63
int
AxesSwapping = 0;
64
};
65
#endif // vtkBilinearQuadIntersection_h
66
// VTK-HeaderTest-Exclude: vtkBilinearQuadIntersection.h
vtkBilinearQuadIntersection::vtkBilinearQuadIntersection
vtkBilinearQuadIntersection(const vtkVector3d &pt00, const vtkVector3d &Pt01, const vtkVector3d &Pt10, const vtkVector3d &Pt11)
vtkBilinearQuadIntersection::vtkBilinearQuadIntersection
vtkBilinearQuadIntersection()=default
vtkBilinearQuadIntersection::GetP10Data
double * GetP10Data()
vtkVector.h
vtkBilinearQuadIntersection::ComputeCartesianCoordinates
vtkVector3d ComputeCartesianCoordinates(double u, double v)
Compute cartesian coordinates of point in the quad using parameteric coordinates.
vtkBilinearQuadIntersection::GetP00Data
double * GetP00Data()
Get direct access to the underlying point data.
vtkBilinearQuadIntersection::GetP01Data
double * GetP01Data()
vtkBilinearQuadIntersection::GetP11Data
double * GetP11Data()
vtkVector3d
Definition:
vtkVector.h:489
vtkBilinearQuadIntersection::RayIntersection
bool RayIntersection(const vtkVector3d &r, const vtkVector3d &d, vtkVector3d &uv)
Compute the intersection between a ray r->d and the quad.
vtkBilinearQuadIntersection
Class to perform non planar quad intersection.
Definition:
vtkBilinearQuadIntersection.h:31
Generated on Mon Jan 4 2021 21:12:05 for VTK by
1.8.20