Skip to main content

objnormals

Generate vertex normal data from wavefront .obj file

Input: sample.obj (without vertex normal info)
Output: sample_out.obj (with vertex normal info)

Run

objnormals filepath

Sample file input:

# cube.obj

v 0.0 0.0 0.0
v 0.0 0.0 1.0
v 0.0 1.0 0.0
v 0.0 1.0 1.0
v 1.0 0.0 0.0
v 1.0 0.0 1.0
v 1.0 1.0 0.0
v 1.0 1.0 1.0

f 1 7 5
f 1 3 7
f 1 4 3
f 1 2 4
f 3 8 7
f 3 4 8
f 5 7 8
f 5 8 6
f 1 5 6
f 1 6 2
f 2 6 8
f 2 8 4

Sample file output:

# cube_out.obj

v 0.0 0.0 0.0
v 0.0 0.0 1.0
v 0.0 1.0 0.0
v 0.0 1.0 1.0
v 1.0 0.0 0.0
v 1.0 0.0 1.0
v 1.0 1.0 0.0
v 1.0 1.0 1.0

vn 0.0 0.0 -1.0
vn 0.0 0.0 -1.0
vn -1.0 0.0 0.0
vn -1.0 0.0 0.0
vn 0.0 1.0 0.0
vn 0.0 1.0 0.0
vn 1.0 0.0 0.0
vn 1.0 0.0 0.0
vn 0.0 -1.0 0.0
vn 0.0 -1.0 0.0
vn 0.0 0.0 1.0
vn 0.0 0.0 1.0

f 1//1 7//1 5//1
f 1//2 3//2 7//2
f 1//3 4//3 3//3
f 1//4 2//4 4//4
f 3//5 8//5 7//5
f 3//6 4//6 8//6
f 5//7 7//7 8//7
f 5//8 8//8 6//8
f 1//9 5//9 6//9
f 1//10 6//10 2//10
f 2//11 6//11 8//11
f 2//12 8//12 4//12

Metadata

Release files for objnormals 0.1.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 objnormals 0.1.1
File Size Uploaded
objnormals-0.1.1.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for objnormals 0.1.1
File Interpreter ABI Platform
objnormals-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.2 kB

Release files / objnormals-0.1.1.tar.gz

Download URL objnormals-0.1.1.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
857c0d68c20fb86a208945132b1717fe525e459b459ca7896af931977dbe9e9f
BLAKE2b-256 checksum
How to use checksums
aac3aaa37ca98a354078bc13ee7eece85e772b41f3783181951ed6882a402495
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / objnormals-0.1.1-py3-none-any.whl

Download URL objnormals-0.1.1-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1ab7432822ee7b10c76c7d9cb2ffa0f44a3825d2e1911e43f8201faf4612423
BLAKE2b-256 checksum
How to use checksums
81f606b464ed000bf8d3e84436f7b165c8dec760afaa57fe284cb47d13c28ab8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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