Sphinx SD Tools
Welcome, Guest
Please Login or Register.    Lost Password?
Auto bend function for the connector (1 viewing) (1) Guest
Development
Go to bottom Post Reply Favoured: 0
TOPIC: Auto bend function for the connector
#13
akunyer (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Auto bend function for the connector 2 Years, 6 Months ago Karma: 0  
Hi ,
Are there any function / method that support the bending function automatically inside the Sphinx rather than we set it manually at 3 points at least to make it become curving spline from the straight line ?

Code:

public void setBendpoints(List<Point> bendPoints) {



        this.bendPoints.clear();

        if (bendPoints != null)  {

        //if ((bendPoints != null) && ( bendPoints.size() )) {

            for (Point2D point : bendPoints) {

              this.bendPoints.add(new Point((int) point.getX(), (int) point.getY()));

               log.info("X " + point.getX());

               log.info("Y " + point.getY());

            }

                 

        }



 
Report to moderator   Logged Logged  
 
Last Edit: 2009/07/30 14:29 By administrator.
  The administrator has disabled public write access.
Go to top Post Reply

get the latest posts directly to your desktop