You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: HELP_regionTriMesh3D.m
    path of file: ./repos/GIBBON/docs
    
    the code of the file until where you have to start completion: %% regionTriMesh3D
% Below is a basic demonstration of the features of the |regionTriMesh3D| function.

%% Syntax
% |[F,V]=regionTriMesh3D(regionCell,pointSpacing,resampleCurveOpt,interpMethod);|


    
function meshes a 3D region. It is conceptually similar to
% |regionTriMesh2D|. The 3D regions are rigidly transformed to a nearly 2D
% form and |regionTriMesh2D| is then used for 2D meshing. Then
% interpolation is to get the coordinates in the 3rd dimension. 
%
% See also: |regionTriMesh2D|

%% Examples

%%
clear; close all; clc;

%%
% Plot settings
fontSize=15;
markerSize1=45;
lineWidth1=4;
faceAlpha=0.5;

%% Example: Meshing a 3D region

%%
% Creating example boundary curves and input region specification

%Boundary 1
ns=150;
t=linspace(0,2*pi,ns);
t=t(1:end