8
Basic Geometric Processing

Spaces 1D, 2D, and 3D Point Line Plan Points/Vectors A point p = (x,y,z) is also the vector p Vector Operation The Length of the vector v Normalization

Embed Size (px)

Citation preview

Page 1: Spaces 1D, 2D, and 3D Point Line Plan Points/Vectors A point p = (x,y,z) is also the vector p Vector Operation The Length of the vector v Normalization

Basic Geometric Processing

Page 2: Spaces 1D, 2D, and 3D Point Line Plan Points/Vectors A point p = (x,y,z) is also the vector p Vector Operation The Length of the vector v Normalization

Spaces 1D, 2D, and 3DPoint

Line

Plan

),,(),,,(),,,(

),(),,(),,(

,,

222111000

221100

210

zyxzyxzyx

yxyxyx

xxx

),,(),,(),( zyxyxx

),,(),,,(

,),(),,(,,

111000

110010

zyxzyx

yxyxxx

Page 3: Spaces 1D, 2D, and 3D Point Line Plan Points/Vectors A point p = (x,y,z) is also the vector p Vector Operation The Length of the vector v Normalization

Points/VectorsA point p = (x,y,z) is

also the vector pVector Operation

The Length of the vector v

Normalization

Dot product of u and v

222

22

|),,(|||

|),(|||

zyxzyxv

yxyxv

)),((||||||

),,(),,( 111000

vuCosvuvu

zyxzyxvu

||/ˆ vvv u

vu+v

Page 4: Spaces 1D, 2D, and 3D Point Line Plan Points/Vectors A point p = (x,y,z) is also the vector p Vector Operation The Length of the vector v Normalization

Vector OperationCross Product

Courtsy:Wikipedia

),,(

)()()(

vuvuvuvuvuvu

vuvuvuvuvuvu

vvv

uuu

xyyxxzzxyzzy

xyyxkxzzxjyzzyi

zyx

zyx

kji

vu

Page 5: Spaces 1D, 2D, and 3D Point Line Plan Points/Vectors A point p = (x,y,z) is also the vector p Vector Operation The Length of the vector v Normalization

LinesEquation

Parametric representation

baxy

cbyax

0

vtppt 0 v0p

vtvtp 0

Page 6: Spaces 1D, 2D, and 3D Point Line Plan Points/Vectors A point p = (x,y,z) is also the vector p Vector Operation The Length of the vector v Normalization

PlanPlan Normal

Plan Equation

),,( nnn zyxN ),,( nnn zyxN

0

0),,(

dzzyyxx

dNzyx

nnn

Page 7: Spaces 1D, 2D, and 3D Point Line Plan Points/Vectors A point p = (x,y,z) is also the vector p Vector Operation The Length of the vector v Normalization

Point, Line, and PlanPoint-line relation

Inclusion, above/belowPoint-plan relation

Inclusion, above/belowLine-plan relation

Intersection, inclusion, parallel, above/belowPlan-plan relation

Intersection, inclusion, parallel, above/below

Page 8: Spaces 1D, 2D, and 3D Point Line Plan Points/Vectors A point p = (x,y,z) is also the vector p Vector Operation The Length of the vector v Normalization

Polyline and PolygonVertices and PolylineConvex and Concave PolygonsSimple and Complex PolygonsPolygon Triangulation Inside and outside a PolygonConvex Hull