We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2010-06-24 09:28 PM
2010-07-14 05:32 AM
2010-07-14 04:48 PM
v= VARDIM2(ac_mesh_X) u= VARDIM1(ac_mesh_X) VERT ac_mesh_X[1][1], ac_mesh_Y[1][1], ac_mesh_Z[1][1] VERT ac_mesh_X[1], ac_mesh_Y[1], ac_mesh_Z[1] VERT ac_mesh_X[1], ac_mesh_Y[1] , ac_mesh_Z[1] VERT ac_mesh_X2[1][1], ac_mesh_Y2[1][1], ac_mesh_Z2[1][1] COOR 2+256+1024, 1, 2, 3, 4
2011-04-01 04:41 PM
2011-04-02 04:06 PM
Peter wrote:Peter:
There is one problem I've discovered with the way it aligns the material compared to the way it applies the 2d cover fill. If you apply a material that you would expect to have a horizontal fill the material is rotated by 90 degrees clockwise when viewed in 3d. The separately applied 2d cover fill is orientated correctly.
The question is how do I adjust the code below to correct this?
v= VARDIM2(ac_mesh_X) u= VARDIM1(ac_mesh_X) VERT ac_mesh_X[1][1], ac_mesh_Y[1][1], ac_mesh_Z[1][1] VERT ac_mesh_X[1], ac_mesh_Y[1], ac_mesh_Z[1] VERT ac_mesh_X[1], ac_mesh_Y[1] , ac_mesh_Z[1] VERT ac_mesh_X2[1][1], ac_mesh_Y2[1][1], ac_mesh_Z2[1][1] COOR 2+256+1024, 1, 2, 3, 4
Vert 0, 0, 0 Vert 1, 0, 0 Vert 0, 1, 0 Vert 0, 0, 1 COOR 2+256, -1, -2, -3, -4If you substitute this you will get a correct result, at least on my simple test. But the original coder may have had reasons for his version, and I have not tested, so other forms created with this object (which can very tremendously) may be worst, rather than better.