.. role:: blue :class: blue MbChamferSurface Chamfer Surface ================================ .. _MbChamferSurface_Chamfer_Surface_: .. версия ядра: 1180ХХ Class :blue:`MbChamferSurface` is declared in the *surf\_chamfer\_surface.h* file. The chamfer surface :blue:`MbChamferSurface` belongs to the group of blending surfaces :blue:`MbSmoothSurface`. The chamfer surface is defined by a curve on the first blended surface :ref:`MbSurfaceCurve ` *curve1*, a curve on the second blended surface :ref:`MbSurfaceCurve ` *curve2*, the chamfer construction method *form*, the chamfer legs *distance1* and *distance2*, the boundary values *umin* and *umax* of the parameter of the curves *curve1* and *curve2*, the boundary values of the second surface parameter *vmin* and *vmax*, the flag of the first surface parameter periodicity *uclosed*, the flag that indicates the presence of a surface pole at the initial value of the first parameter *poleMin*, and the flag that indicates the presence of a surface pole at the final value of the first parameter *poleMax*. The curves *curve1* and *curve2* are coordinated with each other and have the same parameter domain. The first surface parameter *u* coincides with the parameter of the curves *curve1* and *curve2*, which is common for them. The first surface parameter takes values on the segment *umin* ≤ *u* ≤ *umax*, which corresponds to the domain of the curves *curve1* and *curve2*. The surface can be periodic in the first parameter if the curves *curve1* and *curve2* are periodic. The second surface parameter *v* takes values on the segment *vmin* ≤ *v* ≤ *vmax*. The value *v* = *vmin* corresponds to a point on the curve *curve1*, and the value *v* = *vmax* corresponds to a point on the curve *curve2*. The surface cannot be periodic in the second parameter. In the :blue:`PointOn`\( double *u*, double *v*, :ref:`MbCartPoint3D ` & **s** ) method, the radius vector of the surface **s** is described by the vector function .. math:: \mathbf{s}(u, v) = \mathbf{curve1}(u)\,(1 - w) + \mathbf{curve2}(u)\,w, where .. math:: w = \frac{v - \mathit{\text{vmin}}}{\mathit{\text{vmax}} - \mathit{\text{vmin}}}. The chamfer surface is shown in the figure: .. figure:: /MODELER/SURFACES/pictures/O.5.24.1.png :width: 12cm :align: center The curves on the surface **s**\(*const*, *v*) with *u* = const are straight-line segments. The surface can have a pole at *u* = *umin* and *u* = *umax* if the corresponding ends of the curves *curve1* and *curve2* coincide.