doc:user:geometry:user:surfaces
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:user:geometry:user:surfaces [2015/01/07 16:53] – boman | doc:user:geometry:user:surfaces [2016/04/05 22:47] – wautelet | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Definition ===== | ===== Definition ===== | ||
- | The surface is the basic 3D geometric entity. At this level, the geometric concept, '' | + | In Metafor, a '' |
+ | The surface orientation, | ||
- | ==-== Plane: Planar Surface ==-== | ||
- | {{ doc: | + | ===== Plane ===== |
+ | |||
+ | {{ doc: | ||
A plane is defined by three points: | A plane is defined by three points: | ||
- | |||
plane = surfaceset.add( Plane(number, | plane = surfaceset.add( Plane(number, | ||
- | Its normal | + | with |
+ | | '' | ||
+ | | '' | ||
+ | Its normal (and therefore the surface orientation) is computed using the cross product of vectors | ||
$\boldsymbol{p_2}-\boldsymbol{p_1}$ et $\boldsymbol{p_3}-\boldsymbol{p_1}$. | $\boldsymbol{p_2}-\boldsymbol{p_1}$ et $\boldsymbol{p_3}-\boldsymbol{p_1}$. | ||
- | |||
- | | '' | ||
- | |||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | |||
- | |||
- | |||
===== Coons ===== | ===== Coons ===== | ||
- | {{ doc: | + | {{ doc: |
- | A Coons is a linear interpolation between four curves. This curves | + | A Coons' surface |
coons = surfaceset.add( Coons(number, | coons = surfaceset.add( Coons(number, | ||
- | | '' | + | with |
- | + | | '' | |
- | \\ | + | | '' |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
===== Ruled Surface ===== | ===== Ruled Surface ===== | ||
- | A ruled surface is defined by linearly interpolating | + | A ruled surface is defined by linearly interpolating two curves. The orientation of these curves sets the surface orientation. |
- | {{ doc: | + | {{ doc: |
ruled = surfaceset.add( Ruled(number, | ruled = surfaceset.add( Ruled(number, | ||
- | | '' | + | with |
- | + | | '' | |
- | Ruled surfaces can be used to create planes, if the two curves are lines, or cylinders if the curves are arcs. | + | | '' |
- | + | ||
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
+ | Ruled surfaces can be used to create planes, if the two '' | ||
Line 77: | Line 53: | ||
===== NURBS ===== | ===== NURBS ===== | ||
- | {{ doc: | + | {{ doc: |
nur = surfaceset.add( NurbsSurface(number) ) | nur = surfaceset.add( NurbsSurface(number) ) | ||
nur.setDegreeU(degU) | nur.setDegreeU(degU) | ||
nur.setDegreeV(degV) | nur.setDegreeV(degV) | ||
- | nur.push(i1, | + | nur.push(i1, |
nur.push(i2, | nur.push(i2, | ||
nur.pushKnotU(knotu1) | nur.pushKnotU(knotu1) | ||
Line 89: | Line 65: | ||
nur.pushKnotV(knotv1) | nur.pushKnotV(knotv1) | ||
... | ... | ||
- | nur.pushKnotV(knotv2) | + | nur.pushKnotV(knotv2) |
- | + | ||
- | + | with | |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
+ | | '' | ||
===== Surface of revolution ===== | ===== Surface of revolution ===== | ||
- | {{ doc: | + | {{ doc: |
revsur = surfaceset.add( RevolutionSurface(number, | revsur = surfaceset.add( RevolutionSurface(number, | ||
- | where | + | with |
+ | | '' | ||
| '' | | '' | ||
- | | '' | + | | '' |
+ | ===== Sphere | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | ==== Cylinder ==== | + | c = Sphere(number, |
- | | + | with |
- | c = Cylinder(number, | + | | '' |
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | ===== Cylinder ===== | ||
+ | |||
+ | | ||
+ | | ||
+ | c = Cylinder(number, | ||
c.setProjType(projType) | c.setProjType(projType) | ||
- | surfaceset.add( c ) | ||
- | where | + | with |
- | + | | '' | |
- | | '' | + | | '' |
| '' | | '' | ||
| '' | | '' | ||
| '' | | '' | ||
+ | |||
+ | |||
+ |
doc/user/geometry/user/surfaces.txt · Last modified: 2016/11/14 10:30 by wautelet