AlphaPrism is in active development: features may change and you may run into bugs. Keep backups of your work.Known issuesReport a bug
Skip to content

Match Surface ​

Reshape a surface edge to meet another surface or face smoothly: touching (G0), tangent (G1) or curvature-continuous (G2). The other face can be trimmed, or a face of a solid.

Match Surface: Start: two patches meeting at a kink compared with Result: a smooth joint.
Prism help example. Match compatible natural patch boundaries with G0, G1 or G2 continuity. Check Seam reports how well two boundaries meet. View full size

In the app

Match one natural boundary of an untrimmed, non-rational patch to a fixed reference. The reference can be a trimmed face or a face of a solid: the boundary is fitted to its nearest edge, and the patch gets extra control points where it needs them. G1 changes two control rows; G2 changes three. Check the preview for folds before accepting.

How to use ​

  1. Choose Match Surface. Its panel opens on the right with numbered steps; anything you selected first fills matching inputs.
  2. Pick Surface to change (surface).
  3. Pick Reference surface or face (surface, face).
  4. Adjust the settings and check the preview in the viewport.
  5. Confirm in the panel to apply, or cancel to leave the model unchanged. Applied changes are one undo step.

Settings ​

SettingDefaultValues
Source boundaryU minU min, U max, V min, V max
Reference boundaryU maxU min, U max, V min, V max, Nearest edge (any face)
ContinuityTangent (G1)Position (G0), Tangent (G1), Curvature (G2)
Reverse along reference boundaryOff
Tangent scale1 ×0.01 to 100 ×

Script it ​

Command name match_surface. See Python scripting and the command reference.

python
import cadkit as cad

cad.run("match_surface", slots={"Surface to change": ..., "Reference surface or face": ...}, source_boundary="U min", reference_boundary="U max")