Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plugin-PolyLine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenFlipper-Free
Plugin-PolyLine
Commits
497f6b54
Commit
497f6b54
authored
8 years ago
by
Martin Schultz
Browse files
Options
Downloads
Patches
Plain Diff
fixes #50
Please enter the commit message for your changes. Lines starting
parent
6949ad71
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
PolyLinePlugin_BezierSpline.cc
+2
-1
2 additions, 1 deletion
PolyLinePlugin_BezierSpline.cc
PolyLinePlugin_Circle.cc
+2
-1
2 additions, 1 deletion
PolyLinePlugin_Circle.cc
with
4 additions
and
2 deletions
PolyLinePlugin_BezierSpline.cc
+
2
−
1
View file @
497f6b54
...
...
@@ -70,7 +70,8 @@ getPointOnMesh(PolyLineBezierSplineData* _SplineData, ACG::Vec3d _point, ACG::Ve
ACG
::
Vec3d
nor
=
mesh
->
mesh
()
->
normal
(
neigh
.
handle
);
if
(
_nor
)
*
_nor
=
nor
;
OpenMeshTriangleBSPT
<
TriMesh
>::
RayCollision
rayInt
=
bsp
->
raycollision
(
_point
,
nor
);
OpenMeshTriangleBSPT
<
TriMesh
>::
RayCollision
rayInt
;
rayInt
=
bsp
->
raycollision
(
_point
,
nor
);
if
(
rayInt
.
size
())
return
_point
+
nor
*
rayInt
[
0
].
second
;
return
_point
+
nor
.
normalize
()
*
neigh
.
dist
;
...
...
This diff is collapsed.
Click to expand it.
PolyLinePlugin_Circle.cc
+
2
−
1
View file @
497f6b54
...
...
@@ -82,7 +82,8 @@ struct Onb {
bool
PolyLinePlugin
::
createCircle_getPointOnMesh
(
TriMeshObject
*
_triMeshObject
,
ACG
::
Vec3d
_center
,
ACG
::
Vec3d
_pOnPlane
,
ACG
::
Vec3d
_n
,
ACG
::
Vec3d
*
_pOut
)
{
OpenMeshTriangleBSPT
<
TriMesh
>*
bsp
=
_triMeshObject
->
requestTriangleBsp
();
OpenMeshTriangleBSPT
<
TriMesh
>::
RayCollision
rayInt
=
bsp
->
raycollision
(
_pOnPlane
,
_n
);
OpenMeshTriangleBSPT
<
TriMesh
>::
RayCollision
rayInt
;
rayInt
=
bsp
->
raycollision
(
_pOnPlane
,
_n
);
if
(
rayInt
.
empty
())
return
false
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment