• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Crocodile In Style - Curv 3D Printer File Image 1
Crocodile In Style - Curv 3D Printer File Image 2
Crocodile In Style - Curv 3D Printer File Image 3
Crocodile In Style - Curv 3D Printer File Thumbnail 1
Crocodile In Style - Curv 3D Printer File Thumbnail 2
Crocodile In Style - Curv 3D Printer File Thumbnail 3

Crocodile In Style - Curv

Torleif avatarTorleif

May 13, 2018

thingiverse-icon
DescriptionCommentsTags

Description

Curv is a programming language for creating art using mathematics. It's a 2D and 3D geometric modelling tool that supports full colour, animation and 3D printing.
https://github.com/doug-moen/curv

Playing around with my new capcone primitive

	let 
	 
		capcone ( p1 , p2 ) =
		let a=p1[[X,Y,Z]];
			b=p2[[X,Y,Z]];
			d1=p1[3];
			d2=p2[3];
			ba = b - a;
		in make_shape {	
			  

			dist p =
				let 
				pa = p[[X,Y,Z]] - a;
				h = clamp(dot(pa,ba) / dot(ba,ba), 0, 1);
				d=lerp(d1,d2,smoothstep(0,1,h));
				r = d / 2; 
				in mag(pa - ba*h) - r;
			bbox = [min(a-max(d1,d2),b-max(d1,d2)), max(a+max(d1,d2),b+max(d1,d2))];
			is_3d = true;
		};
	 
	 in 
	 union(
			 capcone ((0,0,0,1),(10,0,0,4)),
			 capcone ((0,5,0,2),(10,5,0,2)),
			 capcone ((0,10,0,3),(10,10,0,0)),
			 capcone ((0,15,0,4),(10,15,0,5)),
	 
	  )

License:

Creative Commons - Attribution

Related Models

1-100 Tanks and Vehicles preview image

1-100 Tanks and Vehicles

m_bergman profile image

m_bergman

11,083

HorseCap preview image

HorseCap

hoytdefiant profile image

hoytdefiant

3

MHW: Red Dragon - Safi Jiiva by PittRBM sectioned for Resin Printing preview image

MHW: Red Dragon - Safi Jiiva by PittRBM sectioned for Resin Printing

AlienBard profile image

AlienBard

1,447

Strands Siberia XP Qube Work Light Protective Cap preview image

Strands Siberia XP Qube Work Light Protective Cap

N5K3G profile image

N5K3G

0

Mega Man! Each Color is a Separate STL! preview image

Mega Man! Each Color is a Separate STL!

ChaosCoreTech profile image

ChaosCoreTech

1,241

ClipMate – Custom Cable Name Tag preview image

ClipMate – Custom Cable Name Tag

3dPrintInPlace profile image

3dPrintInPlace

1,028