MATLAB Answers

## How to visualize a tubular volume/surface passing through a given scalar data (points in 3D) forming a sequence of cross-sections

Asked by Navendu Patil

### Navendu Patil (view profile)

on 30 Oct 2019
Latest activity Answered by darova

### darova (view profile)

on 31 Oct 2019
Accepted Answer by darova

### darova (view profile)

I have a set of (x,y,z) points in 3D space (see, attached PDF): The data consists of 14 "cross-sections", each of them taken at one of fixed y-coordinate values (14 of them). The number of points within each corss-section varies and so does the shape and area of the cross section. I want to visualize this data as a tubular surface or a volume whose cross-sections match the given ones, as this seems like its most natural visualization.
I am wondering if there are any built-in matlab commands to do this and/or if there are some of the strategies one could use to visualize this kind of data.
Additional note: In a given cross-section, the number of red and blue points is the same, indicating maximum and minimum z-values for each x-coordinate, respectively.

#### 0 Comments

Sign in to comment.

## 1 Answer

Answer by darova

### darova (view profile)

on 31 Oct 2019
Accepted Answer

Here is one way:
Interpolate each crossection with equal number of points (look HERE)
Concantenate them and just use surf to visualize it

#### 0 Comments

Sign in to comment.