sketchucation logo sketchucation
    • Login
    1. Home
    2. TheDro
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    T
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 26
    • Groups 1

    Topics

    • T

      Image to Surface Plot

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      81 Views
      No one has replied
    • T

      [Plugin] MCExport - Updated 2011-04-04

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      3
      0 Votes
      3 Posts
      6k Views
      sketchartist023S
      Tried as well, modified mcexport.rb filepaths which caused a bug report error force close, tried modify loadpath rb file versions and pre ver information, still same error as original, installed ruby 1.8.6, up to latest version through all of this and none worked. Found zlib.so in all but no prevail. The simplest method of modifying mcexport load path was as close as it got to saying "hey something is there", but crash..... Back to tinkercad. Good try though, appreciate the efforts.
    • T

      [Plugin] Voxelize - Updated 2011-04-04

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      48
      0 Votes
      48 Posts
      61k Views
      fionmacoolF
      Cool plugin. Cheers.
    • T

      Compound Transformation

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      11
      0 Votes
      11 Posts
      693 Views
      C
      @thedro said: Sorry, I realize how unclear that was since wanting to separate isn't related to the same situation as combining them. How very true. In the math world this is generally called matrix decomposition, and there are various schemes to do so depending on what information you're looking to extract. Some information is really easy to find, others are very hard. Scaling isn't to bad however. If you use the transforms .to_a method you'll get a 16 number array. It's best to think of this array as a 4x4 grid, with each group of four entries being one column of the matrix. The reason for this is that you can then interpret each column meaningfully by looking at your axis will change with respect to the transformation. If you think of your coordinate system as an x, y and z-axis together with an origin, then the first column is your x-axis, the second your y-axis, and the third your z-axis and the last column the origin. The only trouble here is that all of the columns have four entries while each of those vectors should only have three. This is pretty easy to resolve however since the last entry of the first three columns will always be 0, and the last entry of the final column will almost always be 1. I say almost always because there is one important exception, which is that if you use use the Transformation.scaling method, then this entry will be the reciprocal of the scaling factor. So for example Geom::Transformation.scaling(2).to_a[-1] will return 0.5, which is 1/2. This somewhat complicates finding the scale factor in that you can't just look at the length of the x-axis in the transformation to find the x-axis scaling, but you can however divide by the this value to achieve the full scaling in that direction. In general you can always take a transformation's array and divide each entry by the value in that last column to "normalize" the last value to 1 without actually changing how the transformation works. I won't bore you with the logic behind why they use this scheme, just know that it simplifies the math behind a number of common operations in computer graphics so they aren't just trying to invoke your wrath.
    • T

      Get Current Units

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      1k Views
      thomthomT
      If you convert a string number into a Length ( .to_l ) and the string contains no unit indication it assumes the units is the current model unit. "50".to_l Returns a Length: 1.96850393700787 (assuming the model units where mm) "50m".to_l Returns a Length: 1968.50393700787 regardless of what the model units are because the unit is specified.
    • T

      Virtual entities or model

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      250 Views
      T
      Sweet. Thanks a lot TIG, that should work.
    • T

      Call Ruby Script from File

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum sketchup
      7
      0 Votes
      7 Posts
      2k Views
      T
      Thanks a lot guys. The load method is just what I was looking for. Here's what I've written in the first file and it works: require 'sketchup.rb' def drawc load 'cubegrid2.rb' include Cubegrid drawgrid end UI.menu("Plugins").add_item("cubegrid") { drawc } Every time I call cubegrid from the Plugins menu, it reloads the cubegrid2.rb file and executes its main method, drawgrid, from the module Cubegrid. I realize that the function names aren't very descriptive and quite uninspired, but that's not important and the moment . Again, thanks for the help.
    • 1 / 1