Learn R Programming

molaR (version 6.0)

meshClip: 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)

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).

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).