Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/NURBSPublic

NURBS library based on libigl.

License

NotificationsYou must be signed in to change notification settings

aijm/NURBS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A really simple NURBS library based on libigl.libigl is a simple C++ geometry processing library, and I use it mainly for displaying the NURBS curve and surface.

Existing functions:

  1. compute points on curve or surface with parameters
  2. display NURBS curve and surface by libigl

to be continued:

  1. readIO and writeIO
  2. knot insertion and knot removal
  3. degree elevation and degree reduction
  4. NURBS curve and surface fitting
  5. T-Spline (it's hard ...)

This project's cmake structure is fromlibigl/libigl-example-project, which is a blank project example showing how to use libigl and cmake.

See the tutorial first

Then build, run and understand thelibigltutorial.

Compile

After downloading and installing libigl, you need to add the Path of libigl to this project by modifyingFindLIBIGL.cmake

find_path(LIBIGL_INCLUDE_DIR igl/readOBJ.h    HINTS        ENV LIBIGL        ENV LIBIGLROOT        ENV LIBIGL_ROOT        ENV LIBIGL_DIR    PATHS        ${CMAKE_SOURCE_DIR}/../..        ${CMAKE_SOURCE_DIR}/..        ${CMAKE_SOURCE_DIR}        ${CMAKE_SOURCE_DIR}/libigl        ${CMAKE_SOURCE_DIR}/../libigl        ${CMAKE_SOURCE_DIR}/../../libigl        D:/Program\ Files/libigl # you can add the path like this        /usr        /usr/local        /usr/local/igl/libigl    PATH_SUFFIXES include)

Compile this project using the standard cmake routine:

mkdir buildcd buildcmake ..make

This should find and build the dependencies and create aNURBS_bin binary.

Run

From within thebuild directory just issue:

./NURBS_bin

A glfw app should launch displaying a Torus surface.

examples and results

  1. Cylindrical surfacecylinder.PNG
  2. Torus surfacetorus.PNG

About

NURBS library based on libigl.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp