forked from openep/openep-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetMappingPointsWithinMesh.m
More file actions
41 lines (39 loc) · 1.44 KB
/
getMappingPointsWithinMesh.m
File metadata and controls
41 lines (39 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
function iPoint = getMappingPointsWithinMesh( userdata, varargin )
% GETMAPPINGPOINTSWITHINMESH Returns the indices of the mapping points
% which are located internal to the mesh
%
% Usage:
% iPoint = getMappingPointsWithinMesh( userdata )
% Where:
% userdata - see importcarto_mem
% iPoint - logical array list of valid points; indexes into userdata.electric
%
% GETMAPPINGPOINTSWITHINMESH accepts the following parameter-value pairs
% 'tol' 0.1 | double
% - The distance threshold within which points are considered to be
% internal or external to the triangulation
% 'plot' {false}|true
% - Specify whether to plot the results
%
% GETMAPPINGPOINTSWITHINMESH Returns the indices of the mapping points
% which are located internal to the mesh. The OpenEP function pointStatus.m
% is used to identify these points. The parameter value pairs are passed
% directly onto pointStatus.m
%
% Author: Steven Williams (2020) (Copyright)
% SPDX-License-Identifier: Apache-2.0
%
% Modifications -
%
% See also GETMAPPINGPOINTSWITHINWOI, POINTSTATUS
%
% Info on Code Testing:
% ---------------------------------------------------------------
% iPoint = getMappingPointsWithinMesh( userdata );
% ---------------------------------------------------------------
%
% ---------------------------------------------------------------
% code
% ---------------------------------------------------------------
[iPoint, ~] = pointStatus( userdata, varargin );
end