M_Rhino_Geometry_BrepFace_ChangeSurface - mcneel/rhinocommon-api-docs GitHub Wiki

BrepFace.ChangeSurface Method

Expert user tool that replaces the 3d surface geometry use by the face.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public bool ChangeSurface(
	int surfaceIndex
)

VB

Public Function ChangeSurface ( 
	surfaceIndex As Integer
) As Boolean

Parameters

 

surfaceIndex
Type: System.Int32
brep surface index of new surface.

Return Value

Type: Boolean
true if successful.

Remarks

If the face had a surface and new surface has a different shape, then you probably want to call something like RebuildEdges() to move the 3d edge curves so they will lie on the new surface. This doesn't delete the old surface; call Brep.CullUnusedSurfaces() or Brep.Compact() to remove unused surfaces.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

BrepFace Class
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️