Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6135403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:28:30+00:00 2026-05-23T17:28:30+00:00

To get a better idea of how matrix transformations work cause I’m having a

  • 0

To get a better idea of how matrix transformations work cause I’m having a fairly hard time seeing what actually happens, I decided to write some scripts that will take a 3D model and then do some translations, rotations, and scaling, since looking at what actually happens when I play around with different values may be helpful.

I’ve already written the scripts to parse a 3D model, so now I just need to write the transformation functions.

I am using the Euclid module, which was amongst several suggestions for working with matrices (though this question is not really python-specific so I left out that tag)

So far I’ve been able to successfully translate a model based on the x,y,z values that I provide.

Now I’m working on the scaling function, and have also managed to scale the model by whatever factor, but I’m having a hard time getting it to scale “on the spot” since the model isn’t centered at the origin.

How can I build a transform matrix that will take into account the center of some arbitrary model?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:28:30+00:00Added an answer on May 23, 2026 at 5:28 pm

    You may scale “around” a point P by the following transformation:

    translate(scale(translate(model, -P)), P)
    

    i.e. for a vertex X you have

    X' = P + s * (X-P) = s*X + (P-s*P)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get a better idea on this as so far I
I am trying to get a better idea of performance of virtual functions here
I'm using R. I have 25 variables over 15 time points, with 3 or
This is a easy question,but I just don't get it. I want to detect
In my registration process, the user registers, they get emailed a verification link, and
This is a general software design question. Is it a good idea to use
I am new to python and graphics but have programmed before. According to http://en.wikipedia.org/wiki/Transformation_matrix#Rotation
The question was about plain c functions, not c++ static methods, as clarified in
I have the following existing classes: class Gaussian { public: virtual Vector get_mean() =
I am using Jquery's autocomplete plugins to show smart search textbox in my application.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.