Output scale solution.

 
Post new topic   Reply to topic    K3DSurf forum Forum Index -> K3DSurf Discuss/Discussions
View previous topic :: View next topic  
Author Message
Jetfire



Joined: 27 Nov 2013
Posts: 2

PostPosted: Tue Jan 21, 2014 10:44 pm    Post subject: Output scale solution. Reply with quote

Hello all.

I have recently been using K3DSurf and found it a cool little piece of software. However, I found out that the scale of the obj files it outputs is off. Seeing as I could not find any solution at the time, I wrote a script in Python to do so for me. Apologies if this problem has already been solved.

Requirements of Use:
-> Python 3.3 or greater if you want to use the run with double click feature
OR
Python 3 or greater if you know how to run a Python script
-> To know the intended size of the object. So long as the use knows the
total (intended) length of the object along any of the major axes
(x, y or z) , then he/she will have enough.
-> The script has to be in the same location as the OBJ file.

The script should guide you through most of the process.

Feel free to leave any comments. Bugs, recommendations, anything. I'm quite new to Python, so I wouldn't be surprised if there was a better way to do half the things this script does. If someone knows how to convert this script into an executable, feel free to notify me. I tried a couple of things, but most of the tools aren't yet available for Python 3.

The link:
https://www.dropbox.com/s/9rz4305uqz45kfy/ScaleOBJ.py
Back to top View user's profile Send private message
AmazingText



Joined: 19 Dec 2014
Posts: 1

PostPosted: Mon Dec 22, 2014 3:15 am    Post subject: Reply with quote

Wow Wow !!! Amazing . How can you do it? I never see.
Back to top View user's profile Send private message Send e-mail Visit poster's website
Jetfire



Joined: 27 Nov 2013
Posts: 2

PostPosted: Fri Sep 18, 2015 3:20 am    Post subject: Reply with quote

Oh hey, a reply! I know this is old now, but I've changed my settings to send me an email if another post appears here.

Are you having trouble using the script, or are you asking how it works?
Back to top View user's profile Send private message
nextstep
Site Admin


Joined: 06 Jan 2007
Posts: 538

PostPosted: Sat Sep 19, 2015 4:38 pm    Post subject: Reply with quote

Hi,
Just to say that in MathMod, the output .OBJ file contain the exact values of the 3D coordinates so you don't have to resize later your output file.
_________________
Cheers,
Abderrahman
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    K3DSurf forum Forum Index -> K3DSurf Discuss/Discussions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


2005 Powered by phpBB © 2001, 2005 phpBB Group


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com