jonnenauha / obj-simplify

Object File (.obj) simplifier
MIT License
133 stars 16 forks source link

Faces with >4 vertices not supported #10

Closed random-geek closed 2 years ago

random-geek commented 2 years ago

This is a neat tool, you earned my star! However, it seems that any faces with over 4 vertices are truncated to just the first 4 vertices when exporting, which is kind of inconvenient since I have models with octagonal faces.

It seems like the upper index limit here could simply be removed to fix the issue, although I'm not super familiar with the code base or the language.

jonnenauha commented 2 years ago

I havent touched this repo in many years, my use of obj is long past :)

You can quite easily tweak the codebase and build new binary. If you are willing to learn how to setup go the readme has instructions https://github.com/jonnenauha/obj-simplify#dev-quickstart This is the GOPATH based approach as go modules did not exist back then.

Or you could install latest go, clone this repo, port to go modules using this.

go mod init
// change code
go build
random-geek commented 2 years ago

Understood, thank you!