isl-org / isl-org/Open3D

cpp: Empty mesh create from `open3d::geometry::TriangleMesh::CreateSphere();`

Open
#6,726 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](https://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](https://www.open3d.org/docs/release/) and the [latest documentation](https://www.open3d.org/docs/latest/) (for `main` branch).

### My Question

Hello,

I am using the pre-build binaries for windows of v18.

```c++
auto sphereMesh = open3d::geometry::TriangleMesh::CreateSphere();

std::cout << "Number of vertices in the mesh: " << sphereMesh->vertices_.size() << std::endl;
std::cout << "Number of faces in the mesh: " << sphereMesh->triangles_.size() << std::endl;
```

The output is 0, an empty mesh. But no segmentation fault error. This has been tested on multiple machines.
```terminal
Number of vertices in the mesh: 18446743948571216470
Number of faces in the mesh: 0
```
Does anyone has an idea how do diagnose this?
Am I missing something huge here?

My system info:
```
Host Name: LAPTOP-RR341PAC
OS Name: Microsoft Windows 11 Home
OS Version: 10.0.22631 N/A Build 22631
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Organization: N/A
Product ID: 00325-82212-99156-AAOEM
Original Install Date: 29/04/2023, 12:15:16
System Boot Time: 17/03/2024, 02:13:48
System Manufacturer: LENOVO
System Model: 82N6
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: AMD64 Family 25 Model 80 Stepping 0 AuthenticAMD ~3201 Mhz
```

Many thanks in advance!

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.