# Parametric dome (triangle pattern)

Hello all,

Can anyone pls help me to complete parametric dome (struck with the above step) and I was planning to assign triangle pattern.

Hi, maybe this is right for you?

this might be the simplest way

4 Likes

@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);
dl = List.DiagonalLeft(p,c);
dh = List.UniqueItems(List.Transpose(p)<1>);
ph = PolyCurve.ByPoints(List.FilterByBoolMask(dh,List.Count(dh<1>)>1)["in"],false);
4 Likes

@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

Error:Warning: Internal error, please report: Dereferencing a non-pointer.

Any idea whats wrong?

Try replacing List with DSCore.List

1 Like

thx Ewan_Opie this helped with list, but PolyCurve.ByPoints donât work with DSCore

@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);
dl = DSCore.List.DiagonalLeft(p,c);
dh = DSCore.List.UniqueItems(DSCore.List.Transpose(p)<1>);
ph = PolyCurve.ByPoints(DSCore.List.FilterByBoolMask(dh,DSCore.List.Count(dh<1>)>1)["in"],false);
1 Like

thx!..yes i forgot the lists inside:

it worked, but the Error says: List.Count() donât work

@Fiesta Youâve still havenât prefixed a DSCore for List.Transpose on the second last line

Thx Vikram, this solved the problem!

1 Like

What package did you use? I donât find âMesh.Sphereâ in my Dynamo

Itâs from the Meshtoolkit package

Andrew

Thanks!