CadQuery / CadQuery/cadquery

Visualizing multiple vertices (3d points)

Open
#1,636 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
5.8k
Forks
541
Avg merge
3d 2h
Merged PRs (30d)
5

Description

Very nice and interesting library. I am a newbie, and I like to learn this library.

As a challenge, I like to model (complex) polyhedrons. Therefore I want firstly visualize the vertices (3d points). I tried this script:

```python
verticesXYZ = (
(0,0,0), (1,0,0), (1,1,0),(0,1,0),
(0,0,1), (1,0,1), (1,1,1),(0,1,1)
)

vertices = []

for v in verticesXYZ:
vertices.append(cq.Vector(v))

show(vertices)
```

This code results in an NotImplementedError for the list of Vectors I put into the show function. I also tried to make objects of class cq.Vertix instead of cq.Vector. Showing Vertix objects throws the following error: tuple' object has no attribute 'IsNull'". I use Jupyter Cadquery with Visual Code as GUI. Furthermore I tried to put the vertices in a Workplane, Sketch or Assembly. Other objects like cubes etc, are showed correctly. Showing 1 point is also working.

Any suggestion, how to show multiple points?

Kind regards!

p.s. I am also interested in more conceptual background documentation/literature about the concepts of CADQuery and 3d modelling in common. Sharing links is appreciated!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.