SurfaceMesh | Surface Mesh editing for freecad | 3D Animation library
kandi X-RAY | SurfaceMesh Summary
kandi X-RAY | SurfaceMesh Summary
This is a surface mesh editing module for FreeCAD. It intends to work similarly to FreeShip, but take advantage of the capabilities of FreeCAD This package is at git@github.com:magwas/SurfaceMesh.git FreeCAD is at FreeShip is at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Observe event
- Get parent by tname
- Add a point
- Get or create an SML layer
- Called when a document has changed
- Called when the object has changed
- Print exception information
- Sets attribute value
- Creates a SM edge from a string
- Add force property
- Execute functions
- Toggle the color
- Open a file and process it
- Create a draft line edit
- Creates a combo box
- Creates a label
- Add a force operator
- Creates a new face
- Add edges to the current mesh
- Insert a file into FreeCAD
- Activate activation
- Show the entry
- Creates a button with given text
- Add property
- Wire a mesh
- Solve a truss equation
SurfaceMesh Key Features
SurfaceMesh Examples and Code Snippets
Community Discussions
Trending Discussions on SurfaceMesh
QUESTION
I am trying to create an AABBTree for checking in which triangle of a 2D mesh some points are. To do that, I am using CGAL, in particular, the Polygon_mesh_processing package and the location functions. However, this feels an impossible task to me.
Since I want to check several points and I care about performance, I want to build an AABB first. To do that, I need the PMP::build_AABB_tree
function, which receives a mesh and the AABBTree
.
In this particular case, the mesh is of type CGAL::Surface_mesh
, with a Simple_cartersian
kernel. The query points are also 2D. According to documentation, I need to provide a ReadablePropertyMap which converts my 2D points into 3D points.
I do this with the following:
...ANSWER
Answered 2021-Feb-23 at 07:47Try the following:
QUESTION
Microsoft.MixedReality.QR API provides spatial graph node id for detected QR codes. I need to access spatial graph node id of Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh class (to use with OpenXR XR_MSFT_spatial_graph_bridge extension). Is it possible?
I've tried to use SurfaceMesh.SurfaceInfo.Id property. But it seems that's not the id OpenXR is looking for.
...ANSWER
Answered 2020-Nov-17 at 08:42Actually, SpatialSurfaceMesh
doesn't expose its underlying spatial graph node like QR codes or SceneUnderstanding
, it is difficult to use the SpatialSrfaceMesh
's SpatialCoordinateSystem
with the OpenXR bridge extension. And in this case, SceneUnderstanding
mesh should be better for all purposes except occlusion. So, it is recommended that you supersede SpatialSurfaceMesh
with SceneUnderstanding to enable the OpenXR bridge extension.
In addition, the example of this feature has been arranged into our development schedule, please take an eye on our documentation.
QUESTION
Following this topic, I am trying to generate a 3D curved triangle as a NURBS surface, but I don't understand how to set up my 3D points to do that.
Here is the current implementation :
...ANSWER
Answered 2019-Feb-21 at 21:14In your code you use NURBSSurface
function from NURBSSurface.js file, that function uses NURBSUtils.calcSurfacePoint
function from NURBSUtils.js file. But the calcSurfacePoint
calculate point for standard NUBRB surface where where parameter are from rectangle (u,v) wiki.
You will not generate "3D cubic bezier triangle" in this way - to do this you need write your own code which will use bezier-triangle formulas (where the input parameters are triangle points in Barycentric_coordinate_system).
QUESTION
Loading .off files is easy:
...ANSWER
Answered 2019-May-03 at 07:10You need to use the property maps of your SurfaceMesh. If and only if the OFF file has colors (meaning the first indication is COFF and not OFF on the first line), and there are colors per vertices and not only per face, then your SurfaceMesh will have an internal property map called "v:color". You can access it by calling
QUESTION
I am trying to modify CGAL-4.13/examples/Surface_mesh_parameterization/lscm.cpp
so that the order of the vertices in the resulting off file is the same as in the input file.
Take a file input.off
with the following simple content:
ANSWER
Answered 2019-Feb-27 at 16:03The following issue answers this question.
QUESTION
I have the following problem, best described with the picture below.
I have a surface in 3D, so it can have vertical overlap and is a non-closed mesh. And I have an object which I want to subtract from it. The green+yellow area is the original surface, the red lines outline a sphere (as triangulated mesh, not a primitive). The yellow area is the part of the surface intersecting the sphere that needs to be removed from the original surface. The green area is the result of the subtraction: the surface that is needed.
I am already using the CGAL library, but still new to it, so a solution using CGAL would be the most preferred. However if somebody has a solution without CGAL that would be welcome as well.
The best way I can see would be to give the surface a slight thickness (keeping the current surface as the bottom). And then use Nef_polyhedron_3 to substract the other object, then convert to Polyhedron_3 and only keep the bottom faces. But this seems like a bit of a hack.
EDIT: Using the proposed solution I get very close, but I am unable to clip to the correct side using the reversed normals as proposed, using the following code. I also tried to see if face vertex ordering (clockwise / counter clockwise) has any effect, but it seems not to have any.
...ANSWER
Answered 2019-Jan-23 at 15:56There is an undocumented function starting from CGAL 4.10 in Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/clip.h
. The function signature is :
QUESTION
I want to create a surface mesh using CGAL's Delaunay in 3D space with points as input.
Right now I have got a working version of 3D Delaunay from CGAL, but now I want to only return a surface from this result. I found this:
...ANSWER
Answered 2018-Feb-05 at 09:14Instead of the Delaunay triangulation you should use surface reconstruction algorithms
QUESTION
i'm making slice function that removes part of mesh at y length. Problem starts when i try to delete removed face edges of a mesh, it goes in to infinite loop.
Where problem occours!
...ANSWER
Answered 2017-Jul-31 at 06:57This is a classical mistake: removing elements you are iterating on. In this particular case, you are removing edges while iterating over edges of face. It is unlikely you'll find the initial edge to stop the iteration, thus the infinite loop.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SurfaceMesh
You can use SurfaceMesh like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page