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 7049585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:02:07+00:00 2026-05-28T03:02:07+00:00

Given a group of 3D models spatially arranged in a specific formation, how do

  • 0

Given a group of 3D models spatially arranged in a specific formation, how do I scale them while preserving the relative distances between each other?

Case in point: I have 10 meshes. Six of them are arranged to form a closed square room. The remaining 4 are pieces of furniture placed at appropriate locations inside it. All meshes have a scale of 1.0. I wish to increase it to, say 2.0.

  • 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-28T03:02:08+00:00Added an answer on May 28, 2026 at 3:02 am

    I am not a mathematician, so I’m going to use the most basic terminology I know how to explain the procedure. You may even find the simplicity of the terminology I use easier to understand than mathematic “jargon”

    You need to use the nominal centre points of all objects in the formation to determine the exact Formation Centre (this will be, of course, a 3D Vector consisting of an X, Y and Z value)…

    Object Total = The total number of objects within your “formation”

    • Cycle through all objects in your formation
      • For each object (to calculate Axis Total)
        • Add the X co-ordinates together (gives us Axis Total X)
        • Add the Y co-ordinates together (gives us Axis Total Y)
        • Add the Z co-ordinates together (gives us Axis Total Z)
      • For each Axis Total axis (to calculate Formation Centre)
        • Formation Centre X = Axis Total X divided by Object Total
        • Formation Centre Y = Axis Total Y divided by Object Total
        • Formation Centre Z = Axis Total Z divided by Object Total

    The three values you now have constitute the Formation Centre (as a 3D vector).

    NOTE: If you are arranging your objects based on a pre-defined fixed point in 3D space (0, 0, 0 for example) you don’t need to do the above calculation, as your Formation Centre will be that fixed point.

    • for each object
      • Calculate the Distance of each axis (Distance X, Distance Y and Distance Z) of the Object Centre from the according axis of Formation Centre…
        • Distance X = Formation Centre X – Object Position X
        • Distance Y = Formation Centre Y – Object Position Y
        • Distance Z = Formation Centre Z – Object Position Z
      • Scale the object by your desired Scale Factor
      • Set the X, Y and Z Position values to their current value plus the distance value of the same axis multiplied by the scale…
        • Position X = Position X + (Distance X * Scale Factor)
        • Position Y = Position Y + (Distance Y * Scale Factor)
        • Position Z = Position Z + (Distance Z * Scale Factor)

    If you’ve done this correctly, your objects have now been scaled, still retain their formation, but have moved relative to the Formation Centre and Scale Factor. Simply put: occlusion between these objects can no longer occur as their Positions have scaled along with their Dimensions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given a group of files with the following naming convention: datetime_restofname.txt an example of
Given the XML below, I need to group by InputItem and sum the costs
Given a table: day_date (form of yyyy-mm-dd) column2 column3 I want to group the
I have the following Model: class Group(models.Model): member = models.ManyToManyField(Player, through='GroupMember') name = models.CharField(max_length=20,
I have two models: class Group < ActiveRecord::Base belongs_to :sites end class Site <
Given an EntityFramework POCO object model such as: public class Group { public int
Given the model Activity containing a bag with models of type Report (one to
I have 2 models: class User < ActiveRecord::Base has_and_belongs_to_many :groups end class Group <
Given : Group hasMany Persons but the relationship is independent (ie. Persons can exist
Does it make sense to group all Interfaces of your Domain Layer (Modules, Models,

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.