Personal tools
You are here: Home Forum Use resizing objects

resizing objects

Up to Use
  • resizing objects

    Posted by wernher at May 28. 2007
    Greetings! How do i resize a primitive in salome after i have created it? I've tried looking in the documentation. But were resizes is supposed to be is a blank page(or rather no page). Thanks, greets Wernher
    • Re: resizing objects

      Posted by Grigory Zhivotovsky at May 28. 2007

      Hi, Wernher!

       

      Use menu Operation – Transformation – Scale transform

       

      TUI example is as follows:

      import geompy

       

      Box_1 = geompy.MakeBoxDXDYDZ(2, 2, 2)

       

      Vertex_1 = geompy.MakeVertex(1, 1, 1)

       

      Scale_1 = geompy.MakeScaleTransform(Box_1, Vertex_1, 5)

       

      geompy.addToStudy( Box_1, "Box_1" )

       

      geompy.addToStudy( Vertex_1, "Vertex_1" )

       

      geompy.addToStudy( Scale_1, "Scale_1" )

       

      Regards,

       

      Grigory

       


      • Re: resizing objects

        Posted by wernher at May 30. 2007
        Hey Grigory Thanks, that indeed does the trick. Is it possible to also scale along only one axis, say for if i wanted to make an object longer or shorter? greetings, Wernher
        • Re: resizing objects

          Posted by Grigory Zhivotovsky at May 30. 2007

          Hi Wernher,

          To scale object along only one axis to make it longer or shorter is impossible by means of 1 command. You have to write your own python script for this.

          Regards,
          Grigory

Powered by Ploneboard
Document Actions