improve BrepDebugger to show current state

This commit is contained in:
Val Erastov 2018-11-07 21:59:16 -08:00
parent 5f04782f56
commit b4ee4bbb0d
2 changed files with 4 additions and 1 deletions

View file

@ -28,6 +28,9 @@ export default class BrepDebugger extends React.PureComponent {
<i className='fa fa-fw fa-cubes button' onClick={() => __DEBUG__.ShowSolids()} />
<i className='fa fa-fw fa-refresh button' onClick={() => this.forceUpdate()} />
</div>
<Section name='SCENE' defaultClosed={true} closable accent captionStyles={['centered']}>
{__CAD_APP.services.cadRegistry.shells.filter(s => s.brepShell).map(shell => <ShellExplorer shell={shell.brepShell} group3d={brepDebugGroup}/>)}
</Section>
<div className='section boolean-sessions'>
{booleanSessions.map(session =>

View file

@ -43,7 +43,7 @@ export const getEdgeViewObjects = findOrCreate.bind(null, (edge, color) => {
if (edge.inverted) {
points.reverse();
}
return createDirectedCurve(points, edge.tangentAtEnd(), edge.vertexB.point, color)
return createDirectedCurve(points, edge.tangentAtEnd(), points[points.length - 1], color)
});
export const getCurveViewObjects = findOrCreate.bind(null, (curve, color) => {