Draggers - rubberband line

Draggers - rubberband line

Post by Kurt Schwe » Tue, 28 Apr 1998 04:00:00



I'm trying to create a sort of *band poly line using IV files to
import into an app.  I can't seem to figure out how to get it working.
I've got a simple case working that has a *band line between one
marker and the origin, but I can figure out how to do it between both
markers.  If anyone could help, I would really appreciate it!  Here is
the sample that I have been playing with.

-Kurt

------ *band.iv ------
#Inventor V2.1 ascii

Separator {
    Separator {
        DEF myDragger Translate2Dragger {       }
        Translation {
                translation 0 0 0 = USE myDragger . translation
        }
        Scale {
                scaleFactor .5 .5 .5
        }
        Rotation {
                rotation 1 0 0 1.571
        }
        Cylinder {
        }
    }

    Separator {
        DEF myDragger2 Translate2Dragger {      }
        Translation {
                translation 0 0 0 = USE myDragger2 . translation
        }
        Scale {
                scaleFactor .5 .5 .5
        }
        Rotation {
                rotation 1 0 0 1.571
        }
        Cylinder {
        }
    }

    LineSet {
        vertexProperty                          VertexProperty {
                vertex [ 0 0 0 ] = USE myDragger . translation
                vertex [ 1 1 0 ] = USE myDragger2 . translation
        }
        numVertices 2
    }

Quote:}

-------

--
-----------------------------------------------------------------------------
Kurt Schwehr                                     (650)604-1148


 
 
 

Draggers - rubberband line

Post by Theodore W. Hal » Thu, 30 Apr 1998 04:00:00



>     LineSet {
>         vertexProperty                          VertexProperty {
>                 vertex [ 0 0 0 ] = USE myDragger . translation
>                 vertex [ 1 1 0 ] = USE myDragger2 . translation
>         }
>         numVertices 2
>     }

You can connect fields, but not individual elements of M fields.  The
solution is to insert a Concatenate engine, to build an MFVec3f vertex
list from the two SFVec3f translations.  I'm attaching an edited
version.

The two cylinders are initially coincident, due to the default values
of the Translate2Draggers.  If you drag the "top" one away, you should
see the * band emerge between the two.

--



 
 
 

Draggers - rubberband line

Post by Theodore W. Hal » Thu, 30 Apr 1998 04:00:00



> I'm attaching an edited version.

... but I forgot to attach it!  Oops.  Here it is ...

  *.iv
1K Download