meshClip: Split a mesh by a plane into two meshes

View source: R/meshClip.R

meshClipR Documentation

Split a mesh by a plane into two meshes

Description

Internal utility that clips an rgl mesh3d by a plane defined as Ax + By + C*z + D = 0, returning the two resulting meshes.

Usage

meshClip(plyFile, A, B, C, D)

Arguments

plyFile

An rgl mesh3d object to be clipped.

A, B, C, D

Numeric coefficients of the clipping plane (plane equation: A*x + B*y + C*z + D = 0).

Value

A list with two elements:

meshA

The submesh on the side where A*x + B*y + C*z + D >= 0.

meshB

The complementary submesh (may be NULL if empty).


molaR documentation built on Nov. 8, 2025, 9:06 a.m.