Skip to main content

# naivert

naivert is an pure Python implementation of ray tracing algorithm using Phong illumination model. For geometry calculation, naivert uses the library of [Geometry3D](https://github.com/GouMinghao/Geometry3D). Basic materials and light sources are given in the configuration file. You can also define the material and light source by yourself. You may refer to the examples and documentation of Geometry3D to get to know how to use naivert.

## Requirements

numpy, Geometry3D, matplotlib and opencv-python

## Installation

`bash pip install naivert `

## Examples Run .py files under examples folder. For example: `bash python example3.py ` ![sample3](sample3.png)

`bash python example4.py ` ![sample3](sample4.png)

`bash python example5.py ` ![sample3](sample5.png)

Note that the calculation may be very slow. You can modify the resolution of the image to reduce the time cost.

## Documentations [HTML](https://naivert.readthedocs.io/en/latest/) [PDF](https://naivert.readthedocs.io/_/downloads/en/latest/pdf/)

Metadata

Release files for naivert 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for naivert 0.0.1
File Size Uploaded Provenance Actions
naivert-0.0.1.tar.gz 9.0 kB Without provenance Details for naivert-0.0.1.tar.gz

Release files / naivert-0.0.1.tar.gz

Download URL naivert-0.0.1.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7d7f53d38f982cbb41ddefa3f6874693f15402de719f763f03be29f9ad6a9ead
BLAKE2b-256 checksum
How to use checksums
6bb906ab89bc6d4ae4523cf65d36e25a148a0b8e6bdadcf2a0a29f4eb5f9e0f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.5

Security for naivert 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page