Skip to content

Normal to prism update#19

Merged
stevengj merged 4 commits intoNanoComp:masterfrom
HomerReid:normal_to_prism_update
Jul 12, 2018
Merged

Normal to prism update#19
stevengj merged 4 commits intoNanoComp:masterfrom
HomerReid:normal_to_prism_update

Conversation

@HomerReid
Copy link

Revised normal_to_object implementation for prisms to account for in-plane distance from point to prism face when determining closest face.

One consequence is that the result of normal_to_object for prisms now differs in some cases from the result for blocks, since the latter does not account for in-plane distances. Consequently, I have disabled the portion of the unit test (utils/test-prism.c) that looks at normals to objects.

…ections when plumb lines pass through vertices
…plane distance from point to prism face when determining closest face
utils/geom.c Outdated
#define DELTAT 1.0e-6
#define TMIN (0.0)
#define TMAX (1.0-DELTAT)
return ( ( t<TMIN || t>TMAX ) ? 0 : 1 );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

… the point into the plane does not lie within the prism face in question
@stevengj stevengj merged commit 9f09e79 into NanoComp:master Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants