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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:28:37+00:00 2026-06-12T22:28:37+00:00

I have some custom geometries obtained from a STEP file conversion and I use

  • 0

I have some custom geometries obtained from a STEP file conversion and I use the mouse to rotate them. They rotate around the origin of the scene, but since they are far from it, they seem rotating on a virtual sphere. How can I move them to the origin so that they don’t seem “floating” around (I mean that I’d like to reduce to zero the radius of the virtual sphere). This is the example I’d like to move. I’ve tried setting their position to (0, 0, 0) doing:

object.position.x = 0;
object.position.y = 0;
object.position.z = 0;

but it didin’t work.

  • 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-06-12T22:28:39+00:00Added an answer on June 12, 2026 at 10:28 pm

    The typical solution to this problem is to translate the geometry right after it is created. You do that by applying a translation matrix to the geometry like so:

    geometry.applyMatrix( new THREE.Matrix4().makeTranslation( distX, distY, distZ ) );
    

    EDIT: You can simply do this, instead:

    geometry.translate( distX, distY, distZ ); // three.js r.72
    

    The function geometry.computeBoundingBox() may be of help to you in determining an amount to translate.

    However, I see in your case, you have multiple geometries, so it it a bit more complicated, but doable. You will need to translate each geometry by the same amount.

    EDIT

    Tip: Instead of adding each object to the scene, create a parent object, add it to the scene, and then add the objects to the parent.

    var parent;
    
    parent = new THREE.Object3D();
    scene.add( parent );
    
    parent.add( object1 );
    parent.add( object2 );
    // and so on...
    

    Then in your render function, just rotate the parent, not the individual objects.

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

Sidebar

Related Questions

I want to have some custom configuration (read in from file) available throughout my
I have some existing custom Excel workbooks/applications with code-behind C#, which work fine. They
I have some custom error pages and views for them. How can I restrict
I have some custom types. They are all basically enums. Here is an example
So I have some custom vi coloring in a syntax file. This works perfectly
I have some custom, CoreAnimation based UI. I'd like to implement mouse dragging of
We have some custom logs that we maintain in the database (mysql). We use
I have some custom toolbar buttons on a jqGrid. One of them is dependent
I have some custom made XML files and a read me file that I've
In a WCF application I have some custom configuration classes for use in app.config

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.