new TrackLayoutOptimizer()
A class to parse the touch/mouse track and generate corresponding chem structure.
Extends
- ObjectEx
Methods
-
optimize(track, options)
-
Optimize the layout of a hand-input track.
Parameters:
Name Type Description track
Array A series of track coords. options
Hash Optimization params. -
splitTrackByRings(track) → {Array}
-
Split track to chain and ring parts.
Parameters:
Name Type Description track
Array A series of track coor ds. Returns:
splitted tracks- Type
- Array