Surface Surface.hxx cadex/Geom/Surface.hxx. More...
Public Member Functions | |
__init__ (self, *args, **kwargs) | |
Type (self) | |
Returns a surface type. | |
Continuity (self) | |
Returns a continuity type of the surface. | |
Value (self, theParameterU, theParameterV) | |
Evaluates a point on the surface. | |
Normal (self, theParameterU, theParameterV) | |
IsUPeriodic (self) | |
Returns true if the surface is periodic in U direction. | |
IsVPeriodic (self) | |
Returns true if the surface is periodic in V direction. | |
UMin (self) | |
Returns a minimum parameter of a definition domain in U direction. | |
UMax (self) | |
Returns a maximum parameter of a definition domain in U direction. | |
VMin (self) | |
Returns a minimum parameter of a definition domain in V direction. | |
VMax (self) | |
Returns a maximum parameter of a definition domain in V direction. | |
Domain (self) | |
Returns a definition domain. | |
IsTrimmed (self) | |
Returns whether surface is trimmed or not. | |
SetTrim (self, theUFirst, theULast, theVFirst, theVLast) | |
Trims surface with [theUFirst, theULast] x [theVFirst, theVLast] section. | |
Transform (self, theTransformation) | |
Applies transformation matrix to this object. | |
Transformed (self, theTransformation) | |
Returns a copy this object after applying transformation. | |
D0 (self, theParameterU, theParameterV, theValue) | |
D1 (self, theParameterU, theParameterV, theValue, theD1U, theD1V) | |
D2 (self, theParameterU, theParameterV, theValue, theD1U, theD1V, theD2U, theD2V, theD2UV) | |
DN (self, theParameterU, theParameterV, theDerivativeOrder, theValue, theD) | |
Returns true if calculation was passed succsesfully, the returned vectors gives the value of the derivative for the order of derivation theDerivativeOrder. | |
Curvature (self, *args) | |
Mirror (self, *args) | |
Mirrored (self, *args) | |
Rotate (self, theAxis, theAngle) | |
Rotated (self, theAxis, theAngle) | |
Translate (self, theVector) | |
Translated (self, theVector) | |
Scale (self, thePoint, theScale) | |
Scaled (self, thePoint, theScale) | |
![]() | |
Id (self) | |
Return unique identifier of public object. | |
IsNull (self) | |
Static Public Member Functions | |
CompareType (theObject) | |
![]() | |
Cast (theBase) | |
Surface Surface.hxx cadex/Geom/Surface.hxx.
Base class for geometrical surfaces.
Surfaces in 3D space are used to represent boundaries of a body (e.g. solid or sheet body). Each face must refer to a surface.
Refer to Surface Types for the list of supported surface types. Type() returns a surface type as enumeration value which can be used to downcast to a respective subclass type, for instance:
Surface is defined using parametric definition as \(\mathbf{S}(u,v)\) where \(\mathbf{S}\) is a 3D radius-vector \((x,y,z)\) and \((u, v)\) are parameters from a definition domain \([u_{min}, u_{max}]\times[v_{min}, v_{max}]\).
UMin(), UMax() and VMin(), VMax(), and Domain() return parametric definition range. Parametric range can be bounded (e.g. \([0, 1]\times[0, 1]\) for Bezier surface), unbounded (e.g. \((-\infty, +\infty)\times(-\infty, +\infty)\) for a plane), or semi-unbounded (e.g. \([0, 2\pi]\times(-\infty, +\infty)\) for cylindrical surface).
At any parameter u and v within a definition domain, the surface can be evaluated as follows:
The following example demonstrates computation of a point on a sphere at parameters \(u=\frac{\pi}{4}\), \(v=\frac{\pi}{6}\):
If the surface is periodic in U and/or V (IsUPeriodic() and/or IsVPeriodic() return true) then the surface can be evaluated at any parameter U and/or V, otherwise behavior is undefined (e.g. an exception can be thrown or a weird value can be returned).
Continuity() returns continuity (C0, C1, C2, CN) of the surface, minimum of U- and V- continuities, where C0 indicates continuity of the surface only, C1 - of its first derivative and so on.
The surface can be modified using the following operations:
manufacturingtoolkit.CadExMTK.Geom_Surface.__init__ | ( | self, | |
* | args, | ||
** | kwargs ) |
Reimplemented from manufacturingtoolkit.CadExMTK.Geom_Geometry.
Reimplemented in manufacturingtoolkit.CadExMTK.Geom_ConicalSurface, manufacturingtoolkit.CadExMTK.Geom_CylindricalSurface, manufacturingtoolkit.CadExMTK.Geom_OffsetSurface, manufacturingtoolkit.CadExMTK.Geom_Plane, manufacturingtoolkit.CadExMTK.Geom_SphericalSurface, and manufacturingtoolkit.CadExMTK.Geom_ToroidalSurface.
|
static |
Reimplemented from manufacturingtoolkit.CadExMTK.Geom_Geometry.
manufacturingtoolkit.CadExMTK.Geom_Surface.DN | ( | self, | |
theParameterU, | |||
theParameterV, | |||
theDerivativeOrder, | |||
theValue, | |||
theD ) |
Returns true if calculation was passed succsesfully, the returned vectors gives the value of the derivative for the order of derivation theDerivativeOrder.
Otherwise returns false. Throws exception if the continuity of the surface is not CN.
Parameters: