$ \DeclareMathOperator{\arccosh}{arccosh} \DeclareMathOperator*{\argmin}{arg\,min} \DeclareMathOperator{\Exp}{Exp} \newcommand{\geo}[2]{\gamma_{\overset{\frown}{#1,#2}}} \newcommand{\geoS}{\gamma} \newcommand{\geoD}[2]{\gamma_} \newcommand{\geoL}[2]{\gamma(#2; #1)} \newcommand{\gradM}{\nabla_{\M}} \newcommand{\gradMComp}[1]{\nabla_{\M,#1}} \newcommand{\Grid}{\mathcal G} \DeclareMathOperator{\Log}{Log} \newcommand{\M}{\mathcal M} \newcommand{\N}{\mathcal N} \newcommand{\mat}[1]{\mathbf{#1}} \DeclareMathOperator{\prox}{prox} \newcommand{\PT}[3]{\mathrm{PT}_{#1\to#2}#3} \newcommand{\R}{\mathbb R} \newcommand{\SPD}[1]{\mathcal{P}(#1)} \DeclareMathOperator{\Tr}{Tr} \newcommand{\tT}{\mathrm{T}} \newcommand{\vect}[1]{\mathbf{#1}} $

export points, curves and tangents on the sphere \(\mathbb S^2\) to asymptote

Export arrays (sorted in cell arrays) of points, curves, and tangent vectors to Asymptote, where they are plotted on a sphere.

Matlab Documentation

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
% fileStr = exportSphereSignals2Asymptote(pts,curves,xi,colors)
% Export a onedimensional signal of spherical data to points on the sphere
%
% INPUT
%   pts    : data of 3xl in s cells, l data points on the sphere embedded
%            in R3
%   curves : data cell array of points, t cells, on S2 to be plotted
%            as curves
%   xi     : 3x2xm arrays in cells, u cells
%   colors : 3x(s+t+u), i.e. columns of color values for the sets
% OUTPUT
%   fileStr : (if specified) string containing the file contents
%
% OPTIONAL PARAMETERS
%   'ArrowHead'    : ('6') dot size for the Arrowheads of the tangent vecs
%   'Camera'       : ([1,1,0]) position of the camera in Asymptote
%
%   'DotSize'      : ('1pt') dot size for the data points (may also be an
%                    array of s+t+u
%   'ExportHeader' : (true) whether to export the Header of the .asy-File
%                    or just the drawing commands.
%   'File'         : ('') file name of the file to export to: If not
%                    specified, only the string will be generated.
%   'OpacityVector': ([1,1,...,1], s+t+u entries make some signals opaque.
%
% ---
% Manifold-Valued Image Restoration Toolbox 1.0
% R. Bergmann ~ 2015-03-26 | 2015-04-08