Beispiel #1
0
    public void SendLine(DBGLine2d line)
    {
        if (!m_valid)
        {
            Debug.Log("connection to cetonia is invalid");
        }

        ctTokenLine2d ct_line;

        ct_line.thickness = line.thickness;

        ctVector2d pt;

        pt.x            = line.p1.x;
        pt.y            = line.p1.y;
        ct_line.p1      = pt;
        pt.x            = line.p2.x;
        pt.y            = line.p2.y;
        ct_line.p2      = pt;
        ct_line.color.r = line.color.r;
        ct_line.color.g = line.color.g;
        ct_line.color.b = line.color.b;

        ctSendLine2d(m_connection, ref ct_line);
    }
Beispiel #2
0
    public DBGLine2d DBG_ShowCetonia(Color color, float thickness)
    {
        DBGLine2d line2d = new DBGLine2d();

        line2d.color     = color;
        line2d.p1        = m_data.p0;
        line2d.p2        = m_data.p1;
        line2d.thickness = thickness;
        return(line2d);
    }