- #1

- 10

- 0

## Main Question or Discussion Point

hey

How can i do that? Can anyone of you help me?

greets

button

MATHEMATICA

How can i do that? Can anyone of you help me?

greets

button

MATHEMATICA

Last edited:

- Thread starter button_ger
- Start date

- #1

- 10

- 0

hey

How can i do that? Can anyone of you help me?

greets

button

MATHEMATICA

How can i do that? Can anyone of you help me?

greets

button

MATHEMATICA

Last edited:

- #2

CompuChip

Science Advisor

Homework Helper

- 4,302

- 47

Also, how do you mean: plotting lines as cylinders? You mean you want to draw a cylinder of radius r along a line?

- #3

- 10

- 0

How can I do that?

I dont know how to format the external data and how I have to do the command in mathematica.

- #4

- 10

- 0

list = Partition[Import["Sites/IWS/testFile.txt", "Table"], 2]

Graphics3D[Cylinder

- ]

but in that way I am not able to change the cylinder-radius. How can I add this parameter in my list?

- #5

CompuChip

Science Advisor

Homework Helper

- 4,302

- 47

Code:

```
Cylinder[{{Subscript[x, 1],Subscript[y, 1],Subscript[z, \
1]},{Subscript[x, 2],Subscript[y, 2],Subscript[z, 2]}},r]
represents a cylinder of radius r around the line from (Subscript[x, \
1],Subscript[y, 1],Subscript[z, 1]) to (Subscript[x, 2],Subscript[y, \
2],Subscript[z, 2]).
```

How you would convert to that from your raw data depends on the version of Mathematica (I suspect you are using 6.0+) and the precise format of the text file.

- Last Post

- Replies
- 5

- Views
- 3K

- Replies
- 7

- Views
- 25K

- Replies
- 2

- Views
- 81K

- Replies
- 0

- Views
- 7K

- Replies
- 8

- Views
- 8K

- Last Post

- Replies
- 4

- Views
- 4K

- Last Post

- Replies
- 10

- Views
- 6K

- Last Post

- Replies
- 6

- Views
- 105K