MeshLib C++ Docs
Loading...
Searching...
No Matches
MRCylinder.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3#include "MRConstants.h"
4
5namespace MR
6{
9
11
13 MRMESH_API Mesh makeCylinder( float radius = 0.1f, float length = 1.0f, int resolution = 16 );
14
16 MRMESH_API Mesh makeOpenCylinder( float radius = 1, float z1 = -1, float z2 = 1, int numCircleSegments = 16 );
17
19 MRMESH_API Mesh makeOpenCone( float radius = 1, float zApex = 0, float zBase = 1, int numCircleSegments = 16 );
20
21 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 );
22
24 MRMESH_API Mesh makeCone( float radius0 = 0.1f, float length = 1.0f, int resolution = 32 );
25}
MRMESH_API Mesh makeCylinder(float radius=0.1f, float length=1.0f, int resolution=16)
Z-looking.
MRMESH_API Mesh makeCone(float radius0=0.1f, float length=1.0f, int resolution=32)
Makes cone mesh by calling makeCylinderAdvanced with the top radius 0.
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)
A hollow cone.
length
Definition MRObjectDimensionsEnum.h:17
MRMESH_API Mesh makeOpenCylinder(float radius=1, float z1=-1, float z2=1, int numCircleSegments=16)
A hollow cylinder.
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMesh.h:23