Metafor

ULiege - Aerospace & Mechanical Engineering

User Tools

Site Tools


doc:user:geometry:user:surfaces

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:user:geometry:user:surfaces [2015/01/07 17:10] – [Plane] bomandoc:user:geometry:user:surfaces [2016/11/14 10:30] (current) – [Open Surface of revolution] wautelet
Line 19: Line 19:
 | ''p1'', ''p2'', ''p3''   | the 3 ''[[Points]]'' lying on the plane |  | ''p1'', ''p2'', ''p3''   | the 3 ''[[Points]]'' lying on the plane | 
  
-Its normal (and therefore the surface orientation) is calculated using the cross product of vectors+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}$.
  
Line 30: Line 30:
   coons = surfaceset.add( Coons(number, wire) )   coons = surfaceset.add( Coons(number, wire) )
  
 +with
 +| ''number'' | user number (unique among surfaces and $\ge 1$) |
 | ''wire''   | the ''[[contours|Wire]]'' which is interpolated |  | ''wire''   | the ''[[contours|Wire]]'' which is interpolated | 
  
Line 41: Line 43:
   ruled = surfaceset.add( Ruled(number, curve1, curve2) )   ruled = surfaceset.add( Ruled(number, curve1, curve2) )
  
-| ''curve1'', ''curve2'', ...         | the 2 ''[[courbes|Curves]]''+with 
 +| ''number'' | user number (unique among surfaces and $\ge 1$) | 
 +| ''curve1'', ''curve2'', ...         | the 2 facing ''[[courbes|Curves]]''
  
 Ruled surfaces can be used to create planes, if the two ''Curves'' are coplanar ''Lines'', or cylinders if the curves are ''Arcs''. Ruled surfaces can be used to create planes, if the two ''Curves'' are coplanar ''Lines'', or cylinders if the curves are ''Arcs''.
Line 54: Line 58:
   nur.setDegreeU(degU)     nur.setDegreeU(degU)  
   nur.setDegreeV(degV)     nur.setDegreeV(degV)  
-  nur.push(i1,j1,p1); nur.pushWeight(i1,j1,w1) +  nur.push(i1, j1, p1); nur.pushWeight(i1, j1, w1) 
   nur.push(i2, j2, p2); nur.pushWeight(i2, j2, w2)     nur.push(i2, j2, p2); nur.pushWeight(i2, j2, w2)  
   nur.pushKnotU(knotu1)   nur.pushKnotU(knotu1)
Line 61: Line 65:
   nur.pushKnotV(knotv1)   nur.pushKnotV(knotv1)
   ...   ...
-  nur.pushKnotV(knotv2)   +  nur.pushKnotV(knotv2)  
 +  
 +with 
 +| ''number'' | user number (unique among surfaces and $\ge 1$) |
 | ''degU'', ''degV''          | degree along U and V                    |  | ''degU'', ''degV''          | degree along U and V                    | 
 | ''i1'', ''j1'', ''i2'', ''j2'', ... | indices of the pole matrix      |  | ''i1'', ''j1'', ''i2'', ''j2'', ... | indices of the pole matrix      | 
Line 70: Line 76:
 | ''knotv1'', ''knotv2'', ... | knot vector along V                      | ''knotv1'', ''knotv2'', ... | knot vector along V                     
  
-===== Surface of revolution =====+===== Closed Surface of revolution =====
  
 {{ doc:user:doc-revol.png |}} {{ doc:user:doc-revol.png |}}
Line 76: Line 82:
   revsur = surfaceset.add( RevolutionSurface(number, axe, wire) )   revsur = surfaceset.add( RevolutionSurface(number, axe, wire) )
  
-where+with 
 +| ''number'' | user number (unique among surfaces and $\ge 1$) | 
 +| ''axe''                    | ''[[courbes|Line]]'' which defines the revolution axis |  
 +| ''wire''                   | ''[[contours|Wire]]'' which will rotate along the revolution axis (it cannot intersect the axis on its first point and must be coplanar with it). |  
 + 
 +===== Open Surface of revolution ===== 
 + 
 +  openrevsur = surfaceset.add( OpenRevolutionSurface(number, axe, wire, angle) )
  
 +with
 +| ''number'' | User number (unique among surfaces and $\ge 1$) |
 | ''axe''                    | ''[[courbes|Line]]'' which defines the revolution axis |  | ''axe''                    | ''[[courbes|Line]]'' which defines the revolution axis | 
 | ''wire''                   | ''[[contours|Wire]]'' which will rotate along the revolution axis (it cannot intersect the axis on its first point and must be coplanar with it). |  | ''wire''                   | ''[[contours|Wire]]'' which will rotate along the revolution axis (it cannot intersect the axis on its first point and must be coplanar with it). | 
 +| ''angle'' | Opening angle $]0, 2 \pi[$ |
 +===== Sphere  =====
  
 +
 +  c = Sphere(number, centerPoint, radius, reversed) 
 +
 +with
 +| ''number'' | user number (unique among surfaces and $\ge 1$) |
 +| ''centerPoint'' | sphere center (Point previously defined in the Pointset !)|
 +| ''radius''    | sphere radius | 
 +| ''reversed''  | unit normal convention - By default (reversed = false), the local covariant tangents are  oriented in such a manner that the unit normal points inwards ! | 
  
 ===== Cylinder ===== ===== Cylinder =====
Line 89: Line 114:
   c.setProjType(projType)   c.setProjType(projType)
  
-where +with 
 +| ''number'' | user number (unique among surfaces and $\ge 1$) |
 | ''axis''       | ''[[courbes|Line]]'' which defines the cylinder axis |  | ''axis''       | ''[[courbes|Line]]'' which defines the cylinder axis | 
 | ''radius''    | cylinder radius |  | ''radius''    | cylinder radius | 
doc/user/geometry/user/surfaces.1420647040.txt.gz · Last modified: 2016/03/30 15:22 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki