# Curves distributing points

## Recommended Posts

Is it possible to distribute scatter points/spheres from curves? I want to try something like the curves in the photo. They're from this video. JBL “The Making-Of Chameleon” on Vimeo

##### Share on other sites

Hi Robert,

the sweep node has a ribbon mode you could use for adding points, scattering on or creating a triangulated patch from it.

sweep_scatter.hiplc

##### Share on other sites

From the points, can I do a Voronoi fracture?

##### Share on other sites

Sure, but you could also compute a dual mesh using the divide node on a remeshed surface just like in the video.

##### Share on other sites

@RTHMan just feed on Magnus Example
make Att-Randomize pscale than

```matrix rot = maketransform(0,0,0,{12,0,0},1,@P);
vector temp_pos = @P +@pscale *{0,1,0};
setprimattrib(0,"pscale",prim,@pscale);
setprimattrib(0,"center",prim,@P);
vector normal ;
for (int i =0; i < 30;i++){
temp_pos*= rot;
}
removepoint(0,@ptnum);```

```@center = prim(0,"center",@primnum);
@pscale = prim(0,"pscale",@primnum);
float offset = @pscale ;
removevalue(@prims,i@primnum);

vector n;
float depth;

vector near_pos;
float near_pscale;
float dist;

vector r = @P- @center;
foreach(int prim;@prims){

near_pos = point(1,"P",prim);
n = normalize (near_pos-@center);
near_pscale = point(1,"pscale",prim);
dist = distance(@center,near_pos);

offset =(@pscale / near_pscale)*dist/(1+(@pscale / near_pscale));
if (dot(n,r)-offset>0){

@P-= n*(dot (n,r)-offset);
}

}
```

• 1
• 1
##### Share on other sites

Konstantin, can I jitter the points that are on the inside?

##### Share on other sites

4 hours ago, RTHMan said:

Konstantin, can I jitter the points that are on the inside?

Sure, the group node supports selecting borders.

sweep_scatter_2.hiplc

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×