Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mesh generator flags #18

Closed
kyy13 opened this issue Mar 15, 2022 · 2 comments
Closed

mesh generator flags #18

kyy13 opened this issue Mar 15, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@kyy13
Copy link
Owner

kyy13 commented Mar 15, 2022

MCM_VERTEX_NORMALS
MCM_FACE_NORMALS (use face instead of vertex)

MCM_WINDING_RHCS_CCW
MCM_WINDING_RHCS_CW
MCM_WINDING_LHCS_CCW
MCM_WINDING_LHCS_CW

MCM_VERTEX_EDGE_LERP

and a function that takes bytes instead of floats

McmGenerateMesh
McmGenerateMesh_U8

also add segment-intersect-mesh for early out detection

McmMeshIntersectsSegment()
McmMeshIntersectsSegment_U8()
McmMeshIntersectsRay()
McmMeshIntersectsRay_U8()

and contains point method...

McmMeshContainsPoint()
McmMeshContainsPoint_U8()

and cleanup function to clean clean a scalar field of voxel noise that isn't part of the surface. (optimize for compression)

McmCleanEmptyVoxels()
McmCleanEmptyVoxels_U8()

@kyy13 kyy13 added the enhancement New feature or request label Mar 15, 2022
@kyy13
Copy link
Owner Author

kyy13 commented Mar 17, 2022

#ifdef CREATE_VERTEX_NORMALS
#define MESH_GENERATE_FN generateMesh_shared_vn
#else
#define MESH_GENERATE_FN generateMesh_shared
#endif

McmResult MESH_GENERATE_FN(...)
{
    // ...
}

@kyy13
Copy link
Owner Author

kyy13 commented Mar 17, 2022

might also be useful to separate unity / csharp wrappers

@kyy13 kyy13 closed this as completed Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant