MeshLib
 
Loading...
Searching...
No Matches
MRMesh/MRCylinder.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3#include "MRConstants.h"
4
5namespace MR
6{
7// Z-looking
8
9 //Draws cylinder with radius 'radius', height - 'length', its base have 'resolution' sides
10 MRMESH_API Mesh makeCylinder( float radius = 0.1f, float length = 1.0f, int resolution = 16 );
11
12 // A hollow cylinder.
13 MRMESH_API Mesh makeOpenCylinder( float radius = 1, float z1 = -1, float z2 = 1, int numCircleSegments = 16 );
14
15 // A hollow cone.
16 MRMESH_API Mesh makeOpenCone( float radius = 1, float zApex = 0, float zBase = 1, int numCircleSegments = 16 );
17
18 MRMESH_API Mesh makeCylinderAdvanced( float radius0 = 0.1f, float radius1 = 0.1f, float start_angle = 0.0f, float arc_size = 2.0f * PI_F, float length = 1.0f, int resolution = 16 );
19
20 // Makes cone mesh by calling makeCylinderAdvanced with the top radius 0.
21 MRMESH_API Mesh makeCone( float radius0 = 0.1f, float length = 1.0f, int resolution = 32 );
22}
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
length
Definition MRObjectDimensionsEnum.h:14
Definition MRCameraOrientationPlugin.h:7
MRMESH_API Mesh makeCylinder(float radius=0.1f, float length=1.0f, int resolution=16)
MRMESH_API Mesh makeCone(float radius0=0.1f, float length=1.0f, int resolution=32)
MRMESH_API Mesh makeCylinderAdvanced(float radius0=0.1f, float radius1=0.1f, float start_angle=0.0f, float arc_size=2.0f *PI_F, float length=1.0f, int resolution=16)
MRMESH_API Mesh makeOpenCone(float radius=1, float zApex=0, float zBase=1, int numCircleSegments=16)
MRMESH_API Mesh makeOpenCylinder(float radius=1, float z1=-1, float z2=1, int numCircleSegments=16)
Definition MRMesh/MRMesh.h:23