Valid
	XHTML 1.1! Valid CSS!
Created 2006-02-25   Modified 2009-04-11
Chelton Evans

proj clipping home

Intro
Source
TODO

Intro

The clipping is implemented on the Linked Simplex data structure. The Clipping Theory describes the algorithm and how it uses the data structure to clip simplexes.

Discussion

What was interesting for me was that clipping is neither straight forward or well defined but subjective. For example a boundary of points may need to be interpreted into an analytical curve, or as a polyline but vary which points on the polyline are used. This is a vast subject so I will just say what I did.

Rather than define a generic subtraction of one mesh from another a subtraction of a partition from a mesh was defined. This alows for analytic partitions to be subtracted from the mesh. For example subtracting a circle from a 2D mesh.

This resulted in the partition having an interface which supported asking if a point was inside the partition, if a point was on the boundary, and surprisingly given two points on opposite sides of the partition interpolate the intersection point. This operation make sense as the simplex goes to zero (becomes smaller) which is really the mesh becomming a finer grain calculate a point on the boundary.

Source

Files

Makefile
d2partitiondraw.h
d3circlepartition.cpp
d3circlepartition.h
d3circlepartitiondraw.cpp
d3circlepartitiondraw.h
d3clipping.cpp
d3clipping.h
d3meshpartition.cpp
d3meshpartition.h
d3meshpartitiondraw.cpp
d3meshpartitiondraw.h
halfspaceD2draw.cpp
halfspaceD2draw.h
main.cpp
menu01.h
test01obj.h

projcompile.txt
unittestsreport.txt

Doxygen

main.cpp
Makefile
d2partitiondraw
d3circlepartition
d3circlepartitiondraw
d3clipping
d3meshpartition
d3meshpartitiondraw
halfspaceD2draw
menu01
test01obj

TODO