cgal

CGAL: Inheritance and the kernel

淺唱寂寞╮ 提交于 2019-12-12 09:11:07
问题 CGAL question: Im trying the add one property to the point class. The first step I guess is to inherit a kernel and replace the point class with my own which I inherit from CGAL's. But just trying to get this small first step I run into trouble. Edit: Based on the comment below I changed the inheritance to the way it's described in the Manual. The code below gives the following compile error: ‘typename CGAL::Extended_homogeneous::Base’ names 'CGAL::Extended_homogeneous::Base’, which is not a

CGAL installation no ALL_BUILD.exe Window

旧时模样 提交于 2019-12-11 22:02:58
问题 Hi there guys I'm trying to install CGAL4.13. When I use cmake to create CGAL.sln file the configuration says is done, and I do generated afterwards. However I do see that it says that I'm missing a couple of stuff: 1)Qt5OpenGL Qt5Svg Qt5 cannot be configured 2)ZLIB_LIBRARY ZLIB_INCLUDE_DIR However cmake does generate the CGAL.sln, I do build them and they don't give any errors. But when I try to run them, I have the following message: Unable to start program: C:\dev\CGAL-4.13\build\Debug\ALL

How to extract face information from Linear_cell_complex_for_combinatorial_map in CGAL?

孤人 提交于 2019-12-11 17:45:50
问题 I was trying to create a hexahedron mesh using CGAL. So far I was able to create a hexaheron, but was unable to extract face and edge info from it. I was able to extract vertices information though using point_of_vertex_attribute typedef CGAL::Linear_cell_complex_for_combinatorial_map<3> LCC; typedef LCC::Point Point; ..... Dart_handle dh1 = lcc.make_hexahedron( Point(0, 0, 0), Point(5, 0, 0), Point(5, 5, 0), Point(0, 5, 0), Point(0, 5, 4), Point(0, 0, 4), Point(5, 0, 4), Point(5, 5, 4));

CMake Boost Libraries Not Found Windows7

大城市里の小女人 提交于 2019-12-11 15:33:52
问题 I am getting the below error when trying to configure CGAL using cmake. Does anyone have an insight on this error . The path is set accordingly but still the error keeps appearing BOOST_ROOT = C:/dev/libboost_1_55_0/boost_1_55_0 BOOST_INCLUDEDIR = C:/dev/libboost_1_55_0/boost_1_55_0/boost BOOST_LIBRARYDIR = C:/dev/libboost_1_55_0/boost_1_55_0/lib32-msvc-12 Could not find the following static Boost libraries: boost_thread boost_system Some (but not all) of the required Boost libraries were

How to get the vertices and the faces of a polygon mesh with CGAL?

一世执手 提交于 2019-12-11 14:18:24
问题 With CGAL , I'm able to get a polyhedron mesh in OFF format. For example the program below builds two tetrahedra, computes their intersection, and returns the result in an OFF file. The OFF output provides the vertices coordinates and the faces given by the vertices indices. But I would like to get the vertices and the faces as C++ variables (for example double vectors for the vertices and int vectors for the faces). Is it possible, and how? Of course I could extract what I want from the OFF

CGAL enumerating/identifying mesh boundaries

試著忘記壹切 提交于 2019-12-11 08:51:49
问题 How does one enumerate/identify mesh boundaries in CGAL? https://doc.cgal.org/latest/Mesh_3/Mesh_3_2mesh_polyhedral_domain_8cpp-example.html shows how to read in the bounding polyhedron (defined by vertices and facets) from an off file, but I can't figure out how to associate selected facets with distinct boundary IDs -- this is required in the subsequent finite element analysis where I have to apply different boundary conditions on different parts of the mesh. I've tried to (ab)use the

CGAL: Read vertices and triangles from mesh

烈酒焚心 提交于 2019-12-11 01:11:45
问题 I just spend few hours with CGAL in Visual Studio C++ trying to understand how meshes work. What I want to get is an access to list of vertices and triangles (vertices in form of double[3], triangles in form of int[3]). Here is the script I am working on: http://doc.cgal.org/latest/Surface_mesher/Surface_mesher_2mesh_a_3d_gray_image_8cpp-example.html The point is - function CGAL::output_surface_facets_to_off (out, c2t3); outputs me a nice file in .off format (accessible by MeshLab), but I CAN

Linux(Ubuntu)安装CGAL

久未见 提交于 2019-12-10 22:10:43
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> CGAL相关信息如下: 官网: CGAL官网 百度百科简单介绍: CGAL百度百科 操作系统:Ubuntu 1404 64bit 需编译的目标库:CGAL 4.7(当前最新的正式版本) 根据官网要求,编译CGAL 4.7版本需要: cmake (version > 2.8.11) boost (version > 1.48) gmp (version > 4.2) mpfr (version > 2.2.1) 安装g++(新装的Ubuntu没有安装g++编译器) apt-get install g++ ps:所有操作均在root用户下进行 一、编译安装Boost 我选择安装的boost版本为1.58.可在boost官网下载: boost官网 首先安装boost的依赖库: apt-get install python-dev gccxml 并copy到/opt路径下 解压boost源文件: tar -zxvf boost_1_58_0.tar.gz 进入boost文件夹,并编译安装boost: cd /opt/boost_1_58_0 ./bootstrap.sh --prefix=/usr ./b2 install 安装完成后,可以简单测试一下boost: cat test.cpp 输入以下代码

Compute intersection area of two polygons with cgal

半腔热情 提交于 2019-12-10 21:35:29
问题 Given the vertices of two convex polygons, what is the simplest way of computing the area of their intersection using cgal? 回答1: Because you are working with convex polygons, there is no need to worry about holes. So the simplest code that I can think of is basically construct the polygons, call intersection, loop over intersection and total up the area:: #include <iostream> #include <CGAL/Simple_cartesian.h> #include <CGAL/Polygon_2.h> #include <CGAL/Polygon_with_holes_2.h> #include <CGAL

CGAL: Intersection between a segment and a polygon?

独自空忆成欢 提交于 2019-12-10 13:27:59
问题 I have a set of polygons and I want to test intersection between it and a segment. I checked the manual but I cannot find a matching function. The intersection between points, lines, segments, triangles, planes do exist. And the intersection between polygons are also there. My question is: Is there such a function? If not, does it mean I need to break down the polygons into segments and do intersection among these segments? (The reason that I am reluctant to do this is, I thought CGAL might