Hello all,
Can anyone pls help me to complete parametric dome (struck with the above step) and I was planning to assign triangle pattern.
Thanks in advance.
Hello all,
Can anyone pls help me to complete parametric dome (struck with the above step) and I was planning to assign triangle pattern.
Thanks in advance.
@Andrew_Hannell @osfe thank you very much⌠I really appreciate your help.
@Manoj sice youâve used the term âparametricâ
//Parametric Hemisphere
r = 10;
b = 30;
c = 20;
u = 0..360..#b;
v = 0..r..#c;
x = Math.Sqrt(Math.Pow(r,2)<1>-Math.Pow(v<2>,2)<2>)*Math.Cos(u)<1>;
y = Math.Sqrt(Math.Pow(r,2)<1>-Math.Pow(v<2>,2)<2>)*Math.Sin(u)<1>;
z = v;
p = List.FirstItem(Autodesk.Point.ByCoordinates(x<1><2>,y<1><2>,z)<1>);
//Cross Bracing
dr = List.DiagonalRight(p,c);
pr = PolyCurve.ByPoints(List.FilterByBoolMask(dr,List.Count(dr<1>)>1)["in"],false);
dl = List.DiagonalLeft(p,c);
pl = PolyCurve.ByPoints(List.FilterByBoolMask(dl,List.Count(dl<1>)>1)["in"],false);
dh = List.UniqueItems(List.Transpose(p)<1>);
ph = PolyCurve.ByPoints(List.FilterByBoolMask(dh,List.Count(dh<1>)>1)["in"],false);
@Vikram_Subbaiah
Hallo,
i copy paste your code into a codeblock, but it didnât work.
I think the functions donât have a connection to the coreâŚbut im not sure
Any idea whats wrong?
Try replacing List with DSCore.List
@Fiesta There seems to be a conflict with some package youâve got installed
Try this âŚ
//Parametric Hemisphere
r = 10;
b = 30;
c = 20;
u = 0..360..#b;
v = 0..r..#c;
x = Math.Sqrt(Math.Pow(r,2)<1>-Math.Pow(v<2>,2)<2>)*Math.Cos(u)<1>;
y = Math.Sqrt(Math.Pow(r,2)<1>-Math.Pow(v<2>,2)<2>)*Math.Sin(u)<1>;
z = v;
p = DSCore.List.FirstItem(Autodesk.Point.ByCoordinates(x<1><2>,y<1><2>,z)<1>);
//Cross Bracing
dr = DSCore.List.DiagonalRight(p,c);
pr = PolyCurve.ByPoints(DSCore.List.FilterByBoolMask(dr,DSCore.List.Count(dr<1>)>1)["in"],false);
dl = DSCore.List.DiagonalLeft(p,c);
pl = PolyCurve.ByPoints(DSCore.List.FilterByBoolMask(dl,DSCore.List.Count(dl<1>)>1)["in"],false);
dh = DSCore.List.UniqueItems(DSCore.List.Transpose(p)<1>);
ph = PolyCurve.ByPoints(DSCore.List.FilterByBoolMask(dh,DSCore.List.Count(dh<1>)>1)["in"],false);
@Fiesta Youâve still havenât prefixed a DSCore for List.Transpose on the second last line
Thx Vikram, this solved the problem!
What package did you use? I donât find âMesh.Sphereâ in my Dynamo
Itâs from the Meshtoolkit package
Andrew
Thanks!