Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

How to control texture angle on element created by EXTRUDE

Anonymous
Not applicable
I create element by command EXTRUDE
But texture on top surface of the created element has wrong direction.

Even if I create texture on the runtime and assign angle by 0,
the material placed on the any other angle.
The code is:

angle = 0
define texture "owntile" "texture_wood.jpg",1,1,256, angle

define material "tilemat" 21,
0.7,0.7,1,
0.15,0.95,0,0.0,
0,0,
ind(fill,"fillAttribute_1"),1,
ind(texture,"owntile")
material tilemat

count = GoodwinGDLPointsCount
for i=1 to count
PUT GoodwinGDLPoints[1]/1000,GoodwinGDLPoints[2]/1000,GoodwinGDLPoints[3]
next i
if count<>0 then
EXTRUDE count,0,0,0.04, 1+2+4+16+32,
GET(NSP)
endif

!points are placed on parameter array.
12 REPLIES 12
Oleg
Expert
Look for COOR (COOR{3}) command
Anonymous
Not applicable
Ye-e-s-s-s-s!)))
Really the COOR command!

!This code works:

define texture "owntile" "texture_wood.jpg",1,1,256,GoodwinGDLAngle
define material "tilemat" 21,
0.7,0.7,1,
0.15,0.95,0,0.0,
0,0,
fillAttribute_1,1,
ind(texture,"owntile")

material tilemat

count = GoodwinGDLPointsCount
for i=1 to count
PUT GoodwinGDLPoints[1]/1000,GoodwinGDLPoints[2]/1000,GoodwinGDLPoints[3]
next i
if count<>0 then
EXTRUDE count,0,0,0.04, 1+2+4+16+32,
GET(NSP)

VERT 0, 0, 0 !#1 center point
VERT 1, 0, 0 !#2 x ward
VERT 0, 1, 0 !#3 y ward
VERT 0, 0, 1 !#4 z ward
COOR 2+256+1024, 1, 2, 3, 4
BODY 1
endif

Thank YOU very mutch !!!)
Anonymous
Not applicable
Glad to hear !

I need to learn more about this COOR command....!