doc:user:geometry:user:surfaces
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:user:geometry:user:surfaces [2014/08/07 17:18] – [Cylinder] joris | doc:user:geometry:user:surfaces [2016/11/14 10:30] (current) – [Open Surface of revolution] 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 ==== | ||
- | {{ doc: | + | ===== Plane ===== |
- | A plane is defined by three points: | + | {{ doc:user: |
+ | 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 ===== |
- | \\ | + | {{ doc: |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | + | A Coons' surface | |
- | + | ||
- | + | ||
- | ==== Coons ==== | + | |
- | + | ||
- | {{ doc: | + | |
- | + | ||
- | A Coons is a linear interpolation between four curves. This curves | + | |
coons = surfaceset.add( Coons(number, | coons = surfaceset.add( Coons(number, | ||
- | | '' | + | with |
+ | | '' | ||
+ | | '' | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
+ | ===== Ruled Surface ===== | ||
+ | A ruled surface is defined by linearly interpolating two curves. The orientation of these curves sets the surface orientation. | ||
- | ==== Ruled Surface ==== | + | {{ doc: |
- | + | ||
- | A ruled surface is defined by linearly interpolating the space between two curves. The orientation of these curves sets the surface orientation. | + | |
- | + | ||
- | {{ doc: | + | |
ruled = surfaceset.add( Ruled(number, | ruled = surfaceset.add( Ruled(number, | ||
- | | '' | + | with |
+ | | '' | ||
+ | | '' | ||
- | Ruled surfaces can be used to create planes, if the two curves | + | Ruled surfaces can be used to create planes, if the two '' |
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
+ | ===== NURBS ===== | ||
- | + | {{ doc: | |
- | ==== Nurbs ==== | + | |
- | + | ||
- | {{ 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 | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | ===== Closed Surface of revolution ===== | ||
- | | '' | + | {{ doc: |
- | | '' | + | |
- | | '' | + | |
- | | '' | + | |
- | | '' | + | |
- | | '' | + | |
- | ==== Surface of revolution ==== | + | revsur |
- | {{ doc:user:doc-revol.png|}} | + | with |
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
- | revsur | + | ===== Open Surface of revolution ===== |
- | where | + | openrevsur = surfaceset.add( OpenRevolutionSurface(number, |
+ | with | ||
+ | | '' | ||
| '' | | '' | ||
- | | '' | + | | '' |
+ | | '' | ||
+ | ===== Sphere | ||
- | \\ | + | c = Sphere(number, |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | ==== Cylinder ==== | + | with |
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
- | | + | ===== Cylinder ===== |
- | c = Cylinder(number, | + | |
+ | | ||
+ | | ||
+ | c = Cylinder(number, | ||
c.setProjType(projType) | c.setProjType(projType) | ||
- | surfaceset.add( c ) | ||
- | where | + | with |
- | + | | '' | |
- | | '' | + | | '' |
| '' | | '' | ||
| '' | | '' | ||
| '' | | '' | ||
+ | |||
+ | |||
+ |
doc/user/geometry/user/surfaces.1407424688.txt.gz · Last modified: 2016/03/30 15:22 (external edit)