mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-28 03:17:14 +01:00
improve BrepDebugger to show current state
This commit is contained in:
parent
5f04782f56
commit
b4ee4bbb0d
2 changed files with 4 additions and 1 deletions
|
|
@ -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 =>
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue